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

violating constraint during optimization #124

Open
ArnoStrouwen opened this issue Jan 30, 2023 · 0 comments
Open

violating constraint during optimization #124

ArnoStrouwen opened this issue Jan 30, 2023 · 0 comments

Comments

@ArnoStrouwen
Copy link
Member

Currently, constraints are only checked at the point of intervention.
But it is possible a constraint is violated before the intervention happens, and then dips below it again.
I think the current approach will miss that?

sol_preintervention = stop_at_threshold(prob_preintervention, obs, threshold; kw...)
violation = x[1] - sol_preintervention.t[end]
violation > 0 && return violation + (duration - (x[1] - t0))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant