#include <OSGeneral.h>
Public Member Functions | |
SparseVector (int number) | |
Constructor. | |
SparseVector () | |
Default Constructor. | |
~SparseVector () | |
Default destructor. | |
Public Attributes | |
bool | bDeleteArrays |
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default | |
int | number |
number is the number of elements in the indexes and values arrays. | |
int * | indexes |
indexes holds an integer array of indexes, which corresponding values are nonzero. | |
double * | values |
values holds a double array of nonzero values. |
Definition at line 105 of file OSGeneral.h.
SparseVector::SparseVector | ( | int | number | ) |
Constructor.
number | holds the size of the vector. |
Definition at line 116 of file OSGeneral.cpp.
References bDeleteArrays, indexes, number, and values.
SparseVector::SparseVector | ( | ) |
SparseVector::~SparseVector | ( | ) |
Default destructor.
Definition at line 132 of file OSGeneral.cpp.
References bDeleteArrays, indexes, and values.
bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
Definition at line 132 of file OSGeneral.h.
Referenced by OSInstance::calculateConstraintFunctionGradient(), OS_DipInterface::getBlockOSInstances(), main(), SparseVector(), and ~SparseVector().
number is the number of elements in the indexes and values arrays.
Definition at line 137 of file OSGeneral.h.
Referenced by CouenneSolver::buildSolverInstance(), OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSInstance::getDenseObjectiveCoefficients(), OSInstance::processObjectives(), and SparseVector().
indexes holds an integer array of indexes, which corresponding values are nonzero.
Definition at line 142 of file OSGeneral.h.
Referenced by CouenneSolver::buildSolverInstance(), OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSMatlab::createOSInstance(), OSnl2osil::createOSInstance(), OSmps2osil::createOSInstance(), OSgams2osil::createOSInstance(), OS_DipInterface::getBlockOSInstances(), OSInstance::getDenseObjectiveCoefficients(), OSBearcatSolverXkij::getInitialRestrictedMaster(), OSBearcatSolverXij::getInitialRestrictedMaster(), OSBearcatSolverXkij::getSeparationInstance(), OSBearcatSolverXij::getSeparationInstance(), main(), OSInstance::printModel(), OSBearcatSolverXkij::resetMaster(), SparseVector(), and ~SparseVector().
double* SparseVector::values |
values holds a double array of nonzero values.
Definition at line 147 of file OSGeneral.h.
Referenced by CouenneSolver::buildSolverInstance(), OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSMatlab::createOSInstance(), OSnl2osil::createOSInstance(), OSmps2osil::createOSInstance(), OSgams2osil::createOSInstance(), OS_DipInterface::getBlockOSInstances(), OSInstance::getDenseObjectiveCoefficients(), OSBearcatSolverXkij::getInitialRestrictedMaster(), OSBearcatSolverXij::getInitialRestrictedMaster(), OSBearcatSolverXkij::getSeparationInstance(), OSBearcatSolverXij::getSeparationInstance(), main(), OSInstance::processObjectives(), OSBearcatSolverXkij::resetMaster(), SparseVector(), and ~SparseVector().