Ipopt error: malloc(): invalid size (unsorted) Aborted (core dumped) #714
Replies: 2 comments 3 replies
-
Did you try running a debugger to see where the problem appears? |
Beta Was this translation helpful? Give feedback.
2 replies
-
Maybe try the derivative tester (https://coin-or.github.io/Ipopt/SPECIALS.html) to let Ipopt check that your gradient and Jacobian seem correct. In the code you send initially, eval_grad_f doesn't look good. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!. Sorry for the long question.
I'm working with Ipopt C++ library.
Planning to work on optimization of trajectories soon, but for now I'm practicing on the simple tasks.
In particular I've been trying to solve this:
I wrote C++ code for finding the solution. It creates cvs file with optimized points.
The problem is that my code satisfies all the required tasks except for this one:
• there is no point lying on a circle or radius 1 centered at (4, 4);
That's why I added this part of the code for creating some obstacle:
And the thing is that when the last two lines are commented out :
the code can be compiled but it doesn't affect the location of the points (because I didn't give the upper and lower bounds) But when they are not commented out it can be compiled again but when I run the program the Ipopt library gives the following error:
`******************************************************************************
This program contains Ipopt, a library for large-scale nonlinear optimization.
Ipopt is released as open source code under the Eclipse Public License (EPL).
For more information visit https://github.com/coin-or/Ipopt
This is Ipopt version 3.14.13, running with linear solver MUMPS 5.6.0.
malloc(): invalid size (unsorted)
Aborted (core dumped)`
What can be the problem? Why should I do? Thank you for your time in advance!
I tried to change the upper and lower bounds changing the values. However it didn't help.
Beta Was this translation helpful? Give feedback.
All reactions