PIPS-NLP
|
#include <NlpGenData.h>
Public Member Functions | |
NlpGenData (LinearAlgebraPackage *la_, long long nx_, long long my_, long long mz_, long long nnzQ_, long long nnzA_, long long nnzC_, long long nxL_in, long long nxU_in, long long nsL_in, long long nsU_in) | |
NlpGenData (LinearAlgebraPackage *la_, int nx_, int my_, int mz_, int nnzQ_, int nnzA_, int nnzC_) | |
NlpGenData (LinearAlgebraPackage *la_in, OoqpVector *grad_in, SymMatrix *H_in, OoqpVector *xlow_in, OoqpVector *ixlow_in, long long nxlow_, OoqpVector *xupp_in, OoqpVector *ixupp_in, long long nxupp_, GenMatrix *A_in, OoqpVector *bA_in, GenMatrix *C_in, OoqpVector *clow_in, OoqpVector *iclow_in, long long mclow_, OoqpVector *cupp_in, OoqpVector *icupp_in, long long mcupp_, OoqpVector *CeqBody_in, OoqpVector *CIneqBody_in, OoqpVector *trialBarrGrad_x_in, OoqpVector *trialBarrGrad_s_in, OoqpVector *trialCeqBody, OoqpVector *trialCIneqBody, OoqpVector *dampind_xL_v, OoqpVector *dampind_xU_w, OoqpVector *dampind_sL_t, OoqpVector *dampind_sU_u) | |
NlpGenData (LinearAlgebraPackage *la_in, OoqpVector *grad_in, SymMatrix *H_in, OoqpVector *xlow_in, OoqpVector *ixlow_in, OoqpVector *xupp_in, OoqpVector *ixupp_in, GenMatrix *A_in, OoqpVector *bA_in, GenMatrix *C_in, OoqpVector *clow_in, OoqpVector *iclow_in, OoqpVector *cupp_in, OoqpVector *icupp_in) | |
void | setDampingVarMap () |
virtual void | putQIntoAt (GenMatrix &M, int row, int col) |
virtual void | putAIntoAt (GenMatrix &M, int row, int col) |
virtual void | putCIntoAt (GenMatrix &M, int row, int col) |
virtual void | putQIntoAt (SymMatrix &M, int row, int col) |
virtual void | putAIntoAt (SymMatrix &M, int row, int col) |
virtual void | putCIntoAt (SymMatrix &M, int row, int col) |
virtual void | Qmult (double beta, OoqpVector &y, double alpha, OoqpVector &x) |
virtual void | Amult (double beta, OoqpVector &y, double alpha, OoqpVector &x) |
virtual void | Cmult (double beta, OoqpVector &y, double alpha, OoqpVector &x) |
virtual void | ATransmult (double beta, OoqpVector &y, double alpha, OoqpVector &x) |
virtual void | CTransmult (double beta, OoqpVector &y, double alpha, OoqpVector &x) |
virtual void | getg (OoqpVector &cout) |
virtual void | getbA (OoqpVector &bout) |
virtual void | getInEqCons (OoqpVector &InEqCon_out) |
virtual void | getDiagonalOfQ (OoqpVector &dQ) |
virtual OoqpVector & | xupperBound () |
virtual OoqpVector & | ixupperBound () |
virtual OoqpVector & | xlowerBound () |
virtual OoqpVector & | ixlowerBound () |
virtual OoqpVector & | supperBound () |
virtual OoqpVector & | isupperBound () |
virtual OoqpVector & | slowerBound () |
virtual OoqpVector & | islowerBound () |
virtual OoqpVector & | scale () |
virtual void | createScaleFromQ () |
virtual void | scaleQ () |
virtual void | scaleA () |
virtual void | scaleC () |
virtual void | scaleg () |
virtual void | scalexupp () |
virtual void | scalexlow () |
virtual void | flipg () |
virtual void | flipQ () |
virtual double | datanorm () |
virtual void | datainput () |
virtual void | datainput (MpsReader *reader, int &iErr) |
virtual void | print () |
virtual | ~NlpGenData () |
virtual double | objectiveValue (Variables *vars) |
virtual double | BarrObjValue (NlpGenVars *vars, double PriObj_in, double dampingFact=0) |
virtual double | evalMeritFunc (NlpGenVars *vars, double penalty, double BarrObj_in) |
virtual double | evalMeritFunc (double priErr, double penalty, double BarrObj_in) |
virtual double | evalMeritFunc (double BarrObj_in, Variables *iterate_in, Residuals *resid_in) |
virtual double | evalScaledConstraintNorm (Variables *iterate_in, Residuals *resid_in, const int isTrialStep=0) |
virtual double | getConTimesD (Variables *vars_in, Variables *steps_in, Residuals *resid_in) |
virtual void | evalData (Variables *vars) |
virtual void | evalConstraintBody (Variables *vars_in, const int IfTrialStep=0) |
virtual double | getBarrGradTimesD (Variables *vars_in, Variables *steps_in, const int IfTrialStep=0, const double dampingFact=0) |
virtual void | moveBounds (OoqpVector *priWrk_X, OoqpVector *priWrk_S, const double tol) |
virtual void | getInitX (OoqpVector *initVecX) |
virtual void | setQIntoAt (SymMatrix &M, int row, int col, bool firstCall, std::map< int, int > &ValIdxMap) |
virtual void | setAIntoAt (SymMatrix &M, int row, int col, bool firstCall, std::map< int, int > &ValIdxMap) |
virtual void | setCIntoAt (SymMatrix &M, int row, int col, bool firstCall, std::map< int, int > &ValIdxMap) |
![]() | |
Data () | |
virtual | ~Data () |
Protected Member Functions | |
NlpGenData () | |
Protected Attributes | |
LinearAlgebraPackage * | la |
|
protected |
NlpGenData::NlpGenData | ( | LinearAlgebraPackage * | la_, |
long long | nx_, | ||
long long | my_, | ||
long long | mz_, | ||
long long | nnzQ_, | ||
long long | nnzA_, | ||
long long | nnzC_, | ||
long long | nxL_in, | ||
long long | nxU_in, | ||
long long | nsL_in, | ||
long long | nsU_in | ||
) |
constructor that makes data objects of the specified dimensions
NlpGenData::NlpGenData | ( | LinearAlgebraPackage * | la_, |
int | nx_, | ||
int | my_, | ||
int | mz_, | ||
int | nnzQ_, | ||
int | nnzA_, | ||
int | nnzC_ | ||
) |
NlpGenData::NlpGenData | ( | LinearAlgebraPackage * | la_in, |
OoqpVector * | grad_in, | ||
SymMatrix * | H_in, | ||
OoqpVector * | xlow_in, | ||
OoqpVector * | ixlow_in, | ||
long long | nxlow_, | ||
OoqpVector * | xupp_in, | ||
OoqpVector * | ixupp_in, | ||
long long | nxupp_, | ||
GenMatrix * | A_in, | ||
OoqpVector * | bA_in, | ||
GenMatrix * | C_in, | ||
OoqpVector * | clow_in, | ||
OoqpVector * | iclow_in, | ||
long long | mclow_, | ||
OoqpVector * | cupp_in, | ||
OoqpVector * | icupp_in, | ||
long long | mcupp_, | ||
OoqpVector * | CeqBody_in, | ||
OoqpVector * | CIneqBody_in, | ||
OoqpVector * | trialBarrGrad_x_in, | ||
OoqpVector * | trialBarrGrad_s_in, | ||
OoqpVector * | trialCeqBody, | ||
OoqpVector * | trialCIneqBody, | ||
OoqpVector * | dampind_xL_v, | ||
OoqpVector * | dampind_xU_w, | ||
OoqpVector * | dampind_sL_t, | ||
OoqpVector * | dampind_sU_u | ||
) |
constructor that sets up pointers to the data objects that are passed as arguments
NlpGenData::NlpGenData | ( | LinearAlgebraPackage * | la_in, |
OoqpVector * | grad_in, | ||
SymMatrix * | H_in, | ||
OoqpVector * | xlow_in, | ||
OoqpVector * | ixlow_in, | ||
OoqpVector * | xupp_in, | ||
OoqpVector * | ixupp_in, | ||
GenMatrix * | A_in, | ||
OoqpVector * | bA_in, | ||
GenMatrix * | C_in, | ||
OoqpVector * | clow_in, | ||
OoqpVector * | iclow_in, | ||
OoqpVector * | cupp_in, | ||
OoqpVector * | icupp_in | ||
) |
constructor that sets up pointers to the data objects that are passed as arguments
|
virtual |
|
virtual |
y = beta * y + alpha * A * x
|
virtual |
y = beta * y + alpha * A * x
|
virtual |
|
virtual |
y = beta * y + alpha * C * x
|
virtual |
Reimplemented in sData.
|
virtual |
y = beta * y + alpha * C * x
|
inlinevirtual |
Reimplemented in sData.
|
virtual |
|
virtual |
compute the norm of the problem data
Implements Data.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
extract the diagonal of Q and put it in the OoqpVector dQ
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
insert the constraint matrix A into the matrix M for the fundamental linear system, where M is stored as a GenMatrix
|
virtual |
insert the constraint matrix A into the matrix M for the fundamental linear system, where M is stored as a SymMatrix
|
virtual |
insert the constraint matrix C into the matrix M for the fundamental linear system, where M is stored as a GenMatrix
|
virtual |
insert the constraint matrix C into the matrix M for the fundamental linear system, where M is stored as a SymMatrix
|
virtual |
insert the Hessian Q into the matrix M for the fundamental linear system, where M is stored as a GenMatrix
|
virtual |
insert the Hessian Q into the matrix M for the fundamental linear system, where M is stored as a SymMatrix
|
virtual |
y = beta * y + alpha * Q * x
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
void NlpGenData::setDampingVarMap | ( | ) |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
OoqpVectorHandle NlpGenData::bA |
double NlpGenData::BarrObj |
OoqpVectorHandle NlpGenData::bl |
OoqpVectorHandle NlpGenData::blx |
OoqpVectorHandle NlpGenData::bu |
OoqpVectorHandle NlpGenData::bux |
OoqpVectorHandle NlpGenData::CeqBody |
OoqpVectorHandle NlpGenData::CIneqBody |
int* NlpGenData::con_Part_idx_in |
double NlpGenData::currMu |
OoqpVectorHandle NlpGenData::dampind_sL_t |
OoqpVectorHandle NlpGenData::dampind_sU_u |
OoqpVectorHandle NlpGenData::dampind_xL_v |
OoqpVectorHandle NlpGenData::dampind_xU_w |
OoqpVectorHandle NlpGenData::grad |
SymMatrixHandle NlpGenData::H |
OoqpVectorHandle NlpGenData::iclow |
OoqpVectorHandle NlpGenData::icupp |
NlpInfo* NlpGenData::inputNlp |
OoqpVectorHandle NlpGenData::ixlow |
OoqpVectorHandle NlpGenData::ixupp |
GenMatrixHandle NlpGenData::Jeq |
GenMatrixHandle NlpGenData::Jineq |
double NlpGenData::kktTh |
int NlpGenData::KryIter |
|
protected |
double NlpGenData::linsysRes |
double NlpGenData::linsysRes_Full |
long long NlpGenData::mclow |
long long NlpGenData::mcupp |
double NlpGenData::MeritObj |
long long NlpGenData::my |
long long NlpGenData::myOri |
long long NlpGenData::mz |
long long NlpGenData::mzOri |
long long NlpGenData::nsLOri |
long long NlpGenData::nsUOri |
long long NlpGenData::nx |
long long NlpGenData::nxLOri |
long long NlpGenData::nxlow |
long long NlpGenData::nxOri |
long long NlpGenData::nxUOri |
long long NlpGenData::nxupp |
double NlpGenData::PriObj |
OoqpVectorHandle NlpGenData::sc |
int NlpGenData::schurSize |
int* NlpGenData::schurVarConID |
OoqpVectorHandle NlpGenData::trialBarrGrad_s |
OoqpVectorHandle NlpGenData::trialBarrGrad_x |
OoqpVectorHandle NlpGenData::trialCeqBody |
OoqpVectorHandle NlpGenData::trialCIneqBody |
int* NlpGenData::var_Part_idx_in |