-
Hello! I am new to InfiniteOpt but very interested in solving an optimal control problem. I have an MTK model provided to me, from which I can generate functions to evaluate the system dynamics and constraint equations. I have variables for the states, controls, and constraints:
and am trying to evaluate the dynamics function:
but am seeing
Not sure if relevant, but I have a) pointed some MTK functions back to Base: Any tips on how to debug this? Thanks for the great package! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi there and welcome. To better help you, would you please provide a minimum working example? From the code provided is not clear how |
Beta Was this translation helpful? Give feedback.
-
updating to master did the trick, thank you!! |
Beta Was this translation helpful? Give feedback.
Thanks for clarifying. The problem is likely that the current released version of InfiniteOpt has a legacy interface for nonlinear expressions based on
InfiniteOpt.NLPExpr
which may have issues with JuMP's newGenericNonlinearExpr
s. The new version of InfiniteOpt, that will be released shortly, is updated to useGenericNonlinearExpr
s.To see if it fixes your problem, please try installing the current development version of InfiniteOpt: