-
Notifications
You must be signed in to change notification settings - Fork 20
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
Request for support for inequality constraint equations #156
Comments
No, that is currently not supported, but opty could support anything that fits an NLP problem that IPOPT can solve. See the definition here: https://coin-or.github.io/Ipopt/ Someone would have to implement inequality algebraic constraints in opty. It only constructs equality constraints at the moment. |
Clear thanks! |
I changed the title and we can leave it as an open issue. |
I think this should be relatively easy to implement. We just need a flag to to Maybe something like: Problem(..., inequalities=((3, -1.2, 5.0), (8, 0.0, np.inf))) Where the first number in each tuple corresponds to the index in the equations of motion that holds |
I guess, you meant |
I don't believe that. :) |
Easier than GitHub / PRs ? :-) |
If I wanted to have a look at this, would I have to have a full understanding of Ipopt? |
You wouldn't have to have a full understanding, but you will have to understand the relevant parts.
The ConstraintCollocator class will need to handle extra equations. I think that it only allows # equations equal to the # of states at the moment. And the Problem class will have to be modified to allow a user to specify which equations are inequalities and whether >= or <=. We should try carefully think about the API design for specifying this, so that it isn't clunky. |
This sounds beyond my capabilities. |
As I was told, opty can handle algebraic constraint equations.$a, b \in R, a < b$ . Let $f (q_i)$ be a scalar function of the generalized coordinates.$a < f(q_i) < b \longleftrightarrow$
$f(q_i) - b < 0$
$a - f(q_i) < 0$ be possible?
Can it also handle alegebraic inequalities? What I mean is this:
Say,
Would
Thanks for any help!
The text was updated successfully, but these errors were encountered: