Segmentation fault in project which includes Eigen3 #839
-
|
I was working on a project that made use of the Ipopt library in conjunction with the Eigen3 library to try to approximate the mean and standard deviation of a normal random variable, in this case, one with a mean 5 and standard deviation 2.5. I was able to successfully build and run the tests provided by Ipopt; furthermore, I was able to build my project. However, when I tried to run my application, it returned a segmentation fault. I have tried to use debugging packages, such as Valgrind, to no avail. I have tried making the project with both the Makefile provided by Ipopt and CMake; however, in all of my attempts, I get the same error. I have provided all the files and the Valgrind report associated with my project as txt files. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In If you don't have constraints, then you Jacobian also has no entries, so this should be In your Hessian implementation, you have But since you have only 2 variables, there should be only 2 rows and columns. And since only half of the (symmetry) Hessian should be provided, you probably meant |
Beta Was this translation helpful? Give feedback.
In
get_nlp_info(), you haveIf you don't have constraints, then you Jacobian also has no entries, so this should be
nnz_jac_g.In your Hessian implementation, you have
But since you have only 2 variables, there should be only 2 rows and columns. And since only half of the (symmetry) Hessian should be provided, you probably meant
nnz_h_lag=3