Closed RedRussianBear closed 11 months ago
Can you provide a reproducible example?
Hi, my apologies, while making simplified example for reproduction I figured out that the error was being caused by me accidentally providing out of bounds indices for the hessian structure in my main code, which is my fault. It would be nice though if this threw an error saying as much instead of the segfault.
Thanks!
It would be nice though if this threw an error saying as much instead of the segfault.
This can be difficult, because the code is actually getting run from C (hence the segfault and no Julia bounds checking).
In general, I'd encourage you to use JuMP instead of MOI. If you're manually coding the Hessian sparsity and callbacks, it is too easy to make a mistake.
Closing as expected behaviour.
Hi, I'm using Ipopt with MathOptInterface to solve trajectory optimization problems. When I was providing hessians for the objective function with only diagonal elements, everything worked fine. However, now that I am also incorporating the constraint hessians by adding duplicate entries (I did this because it was easier and according to the MOI docs, "These indices are not required to be sorted and can contain duplicates, in which case the solver should combine the corresponding elements by adding them together.") the solver consistently crashes on the second iteration.
Am I doing something wrong, or is this an issue with the implementation?