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

Betts 10 113 #277

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Betts 10 113 #277

wants to merge 10 commits into from

Conversation

Peter230655
Copy link
Contributor

This is a very simple example how to handle inequalities of the form: function(state_variables, control_variables, parameters) >= 0
I simply define a new state variable, say, J, and set J = function(state_variables, control_variables, parameters) as additional equation in the equations of motion.
Then, in the bounds I set: { J: (-np.inf, 0.0) }

I made similar PRs before, but none this simple.
I guess, a matter of taste, which, if any at all, should make it into examples-gallery.

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

Successfully merging this pull request may close these issues.

1 participant