Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/clip post-lapse stability #30

Merged
merged 3 commits into from
Dec 17, 2024
Merged

Fix/clip post-lapse stability #30

merged 3 commits into from
Dec 17, 2024

Conversation

L-M-Sherlock
Copy link
Member

@L-M-Sherlock L-M-Sherlock commented Dec 16, 2024

@L-M-Sherlock L-M-Sherlock added the bug Something isn't working label Dec 16, 2024
@L-M-Sherlock L-M-Sherlock changed the title Fix/clip PLS Fix/clip post-lapse stability Dec 16, 2024
@ishiko732
Copy link
Contributor

When the long-term scheduler is enabled, should $w_{17} \times w_{18}$ be equal to 0?

I currently only know that $w_{17}$ and $w_{18}$ are related to next_short_term_stability, which is not called by the long-term scheduler.

@L-M-Sherlock
Copy link
Member Author

When the long-term scheduler is enabled, should
𝑤
17
×
𝑤
18
be equal to 0?

Yes. So exp(w[17] * w[18]) = 1.

@ishiko732
Copy link
Contributor

ishiko732 commented Dec 16, 2024

So exp(w[17] * w[18]) = 1.

I understand, but after switching to the long-term scheduler, $$w_{17}$$ and $$w_{18}$$ are not necessarily 0. Should their values be determined based on p.EnableShortTerm?

var newSMin float64
if p.EnableShortTerm {
    newSMin = s / math.Exp(p.W[17]*p.W[18])
} else {
    newSMin = s
}

// or
var newSMin float64 = s
if p.EnableShortTerm {
    newSMin = s / math.Exp(p.W[17]*p.W[18])
}

@L-M-Sherlock
Copy link
Member Author

Right. I have another idea: when EnableShortTerm is false, reset W[17] and W[18] to zero. What about that?

@ishiko732
Copy link
Contributor

I have another idea: when EnableShortTerm is false, reset W[17] and W[18] to zero. What about that?

I think that continuously switching schedulers might confuse developers, as they may not understand why W[17] and W[18] are suddenly set to zero. :(

@L-M-Sherlock
Copy link
Member Author

OK, I will update the PR based on your suggestion tomorrow.

@L-M-Sherlock
Copy link
Member Author

@ishiko732 cc

Copy link
Contributor

@ishiko732 ishiko732 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@L-M-Sherlock L-M-Sherlock merged commit b442a7c into main Dec 17, 2024
12 checks passed
@L-M-Sherlock L-M-Sherlock deleted the Fix/clip-PLS branch December 17, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants