EXIT: Not enough memory #717
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I found out that I might be encountering the issue due to the "linear solver". I started playing with options of the solver, but didn't succeed:
|
Beta Was this translation helpful? Give feedback.
-
It's probably You can try with nnz_jac_g=0 and nnz_h_lag=0. I don't remember whether the Jacobian approx still needed the sparsity pattern of the Jacobian, though. Do yourself a favor and provide at least first derivatives. |
Beta Was this translation helpful? Give feedback.
It's probably
nnz_jac_g = -1;
that leads to this. Finite difference first-derivative approximation isn't much used, because, well, it usually shouldn't be used. It gives very bad performance. So somewhere it may still try to allocate a vector with lengthnnz_jac_g
and allocating a negative number of bytes produces an error (or it tries to alloc something like INT_MAX-1, for which there is indeed not enough memory).You can try with nnz_jac_g=0 and nnz_h_lag=0. I don't remember whether the Jacobian approx still needed the sparsity pattern of the Jacobian, though. Do yourself a favor and provide at least first derivatives.