-
Notifications
You must be signed in to change notification settings - Fork 64
Initial guess constraint violation #155
Comments
Hi, there is no direct way at the moment to evaluate the constraints function for the different type of constraints. You could try to evaluate the (CasaADi ) constraints function on the initial guess and see if you can figure out which constraints are violated. For this you can set a breakpoint in
Then create a CasaADi function and evaluate it with the initial guess
ill post an example in a minute |
For the Racecar example it looks like this: For each control interval, there are in this order
Red and green lines are upper and lower bounds for the constraints. The constraints are in the form g<=0 or g==0, so the upper bound is always 0 and the lower bound either 0 or minus infinity. |
This is very helpful -- thanks very much! |
ah yes the controls were missing when using .initialize(), if you fixed you could do a pull request, or i will fix it in the coming days.. |
Great, thanks for the info! I just did a pull request as well. |
Hi,
I'm setting an initial guess for the optimization with problem.initialize, and even though the constraints should be satisfied, the "constraint violation" output is rather high (I provide values for state and control for every grid point with problem.initialize). Any suggestions on how to check if the issue comes from the system dynamics constraints? Thanks!
The text was updated successfully, but these errors were encountered: