diff options
Diffstat (limited to 'sci_gateway/cpp/QuadNLP.hpp')
-rw-r--r-- | sci_gateway/cpp/QuadNLP.hpp | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/sci_gateway/cpp/QuadNLP.hpp b/sci_gateway/cpp/QuadNLP.hpp index 4020913..4e0da42 100644 --- a/sci_gateway/cpp/QuadNLP.hpp +++ b/sci_gateway/cpp/QuadNLP.hpp @@ -26,46 +26,44 @@ class QuadNLP : public TNLP Index numConstr_; // Number of constraints. - const Number *qMatrix_ = NULL; //qMatrix_ is a pointer to matrix of size numVars X numVars_ + const Number *qMatrix_; //qMatrix_ is a pointer to matrix of size numVars X numVars_ // with coefficents of quadratic terms in objective function. - const Number *lMatrix_ = NULL;//lMatrix_ is a pointer to matrix of size 1*numVars_ + const Number *lMatrix_;//lMatrix_ is a pointer to matrix of size 1*numVars_ // with coefficents of linear terms in objective function. - const Number *conMatrix_ = NULL;//conMatrix_ is a pointer to matrix of size numConstr X numVars // with coefficients of terms in a each objective in each row. + const Number *conMatrix_ ;//conMatrix_ is a pointer to matrix of size numConstr X numVars - const Number *conUB_= NULL; //conUB_ is a pointer to a matrix of size of 1*numConstr_ + const Number *conUB_; //conUB_ is a pointer to a matrix of size of 1*numConstr_ // with upper bounds of all constraints. - const Number *conLB_ = NULL; //conLB_ is a pointer to a matrix of size of 1*numConstr_ + const Number *conLB_ ; //conLB_ is a pointer to a matrix of size of 1*numConstr_ // with lower bounds of all constraints. - const Number *varUB_= NULL; //varUB_ is a pointer to a matrix of size of 1*numVar_ + const Number *varUB_; //varUB_ is a pointer to a matrix of size of 1*numVar_ // with upper bounds of all variables. - const Number *varLB_= NULL; //varLB_ is a pointer to a matrix of size of 1*numVar_ + const Number *varLB_; //varLB_ is a pointer to a matrix of size of 1*numVar_ // with lower bounds of all variables. - const Number *varGuess_= NULL; //varGuess_ is a pointer to a matrix of size of 1*numVar_ + const Number *varGuess_; //varGuess_ is a pointer to a matrix of size of 1*numVar_ // with initial guess of all variables. - Number *finalX_= NULL; //finalX_ is a pointer to a matrix of size of 1*numVar_ + Number *finalX_; //finalX_ is a pointer to a matrix of size of 1*numVar_ // with final value for the primal variables. - Number *finalZl_= NULL; //finalZl_ is a pointer to a matrix of size of 1*numVar_ + Number *finalZl_; //finalZl_ is a pointer to a matrix of size of 1*numVar_ // with final values for the lower bound multipliers - Number *finalZu_= NULL; //finalZu_ is a pointer to a matrix of size of 1*numVar_ + Number *finalZu_; //finalZu_ is a pointer to a matrix of size of 1*numVar_ // with final values for the upper bound multipliers - Number *finalLambda_= NULL; //finalLambda_ is a pointer to a matrix of size of 1*numConstr_ + Number *finalLambda_; //finalLambda_ is a pointer to a matrix of size of 1*numConstr_ // with final values for the upper bound multipliers Number finalObjVal_; //finalObjVal_ is a scalar with the final value of the objective. - int iter_; //Number of iteration. - int status_; //Solver return status QuadNLP(const QuadNLP&); @@ -123,8 +121,6 @@ class QuadNLP : public TNLP double getObjVal(); //Returns the output of the final value of the objective. - double iterCount(); //Returns the iteration count - int returnStatus(); //Returns the status count |