diff options
Diffstat (limited to 'sci_gateway/cpp/sci_QuadNLP.cpp')
-rw-r--r-- | sci_gateway/cpp/sci_QuadNLP.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sci_gateway/cpp/sci_QuadNLP.cpp b/sci_gateway/cpp/sci_QuadNLP.cpp index 99987a2..50e8109 100644 --- a/sci_gateway/cpp/sci_QuadNLP.cpp +++ b/sci_gateway/cpp/sci_QuadNLP.cpp @@ -209,10 +209,11 @@ void QuadNLP::finalize_solution(SolverReturn status, finalLambda_[i] = lambda[i]; } - iter_ = ip_data->iter_count(); finalObjVal_ = obj_value; status_ = status; - + if (status_ == 0 | status_ == 1 | status_ == 2){ + iter_ = ip_data->iter_count(); + } } const double * QuadNLP::getX() |