forked from harpreetrathore/FOSSEE-Optimization-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
FOSSEE-Optimization-toolbox/sci_gateway/cpp/sci_QuadTMINLP.cpp
Lines 204 to 215 in b8703eb
| void QuadTMINLP::finalize_solution(TMINLP::SolverReturn status, Index n, const Number* x,Number obj_value) | |
| { | |
| finalX_ = (double*)malloc(sizeof(double) * numVars_ * 1); | |
| for (Index i=0; i<n; i++) | |
| { | |
| finalX_[i] = x[i]; | |
| } | |
| finalObjVal_ = obj_value; | |
| status_ = status; | |
| } |
When we try to solve infeasible problems in intquadprog, it crashes while in the FinaliseSolution method.
Metadata
Metadata
Assignees
Labels
No labels