#include <OSDataStructures.h>
Public Member Functions | |
SparseHessianMatrix () | |
Default constructor. | |
SparseHessianMatrix (int startSize, int valueSize) | |
An Alternative Constructor. | |
~SparseHessianMatrix () | |
Default destructor. | |
Public Attributes | |
bool | bDeleteArrays |
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default | |
int | hessDimension |
hessDimension is the number of nonzeros in each array. | |
int * | hessRowIdx |
hessRowIdx is an integer array of row indicies in the range 0, . | |
int * | hessColIdx |
hessColIdx is an integer array of column indicies in the range 0, . | |
double * | hessValues |
hessValues is a double array of the Hessian values. |
Assume there are n variables in what follows
Definition at line 244 of file OSDataStructures.h.
SparseHessianMatrix::SparseHessianMatrix | ( | ) |
SparseHessianMatrix::SparseHessianMatrix | ( | int | startSize, | |
int | valueSize | |||
) |
An Alternative Constructor.
startSize | holds the size of the arrays. | |
valueSize | holds the size of the value and index arrays. |
SparseHessianMatrix::~SparseHessianMatrix | ( | ) |
Default destructor.
Definition at line 192 of file OSDataStructures.cpp.
References bDeleteArrays, hessColIdx, hessRowIdx, and hessValues.
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
Definition at line 251 of file OSDataStructures.h.
Referenced by OSInstance::getLagrangianHessianSparsityPattern(), and ~SparseHessianMatrix().
hessDimension is the number of nonzeros in each array.
Definition at line 256 of file OSDataStructures.h.
Referenced by IpoptProblem::get_nlp_info(), OSInstance::getLagrangianHessianSparsityPattern(), KnitroProblem::loadProblemIntoKnitro(), and main().
hessRowIdx is an integer array of row indicies in the range 0, .
.., n - 1.
Definition at line 261 of file OSDataStructures.h.
Referenced by IpoptProblem::eval_h(), OSInstance::getLagrangianHessianSparsityPattern(), KnitroProblem::loadProblemIntoKnitro(), main(), and ~SparseHessianMatrix().
hessColIdx is an integer array of column indicies in the range 0, .
.., n - 1.
Definition at line 266 of file OSDataStructures.h.
Referenced by IpoptProblem::eval_h(), OSInstance::getLagrangianHessianSparsityPattern(), KnitroProblem::loadProblemIntoKnitro(), main(), and ~SparseHessianMatrix().
double* SparseHessianMatrix::hessValues |
hessValues is a double array of the Hessian values.
Definition at line 271 of file OSDataStructures.h.
Referenced by CheckHessianUpper(), IpoptProblem::eval_h(), KnitroProblem::evalH(), OSInstance::getLagrangianHessianSparsityPattern(), OSInstance::getSecondOrderResults(), main(), and ~SparseHessianMatrix().