#include <ClpQuadraticObjective.hpp>
Inheritance diagram for ClpQuadraticObjective:
Public Methods | |
Stuff | |
virtual double * | gradient (const ClpSimplex *model, const double *solution, double &offset, bool refresh, int includeLinear=2) |
Returns gradient. | |
virtual double | reducedGradient (ClpSimplex *model, double *region, bool useFeasibleCosts) |
Returns reduced gradient.Returns an offset (to be added to current one). | |
virtual double | stepLength (ClpSimplex *model, const double *solution, const double *change, double maximumTheta, double ¤tObj, double &predictedObj, double &thetaObj) |
Returns step length which gives minimum of objective for solution + theta * change vector up to maximum theta. | |
virtual void | resize (int newNumberColumns) |
Returns gradient. | |
virtual void | deleteSome (int numberToDelete, const int *which) |
Delete columns in objective. | |
virtual void | reallyScale (const double *columnScale) |
Scale objective. | |
virtual int | markNonlinear (char *which) |
Given a zeroed array sets nonlinear columns to 1. | |
Constructors and destructors | |
ClpQuadraticObjective () | |
Default Constructor. | |
ClpQuadraticObjective (const double *linearObjective, int numberColumns, const CoinBigIndex *start, const int *column, const double *element, int numberExtendedColumns_=-1) | |
Constructor from objective. | |
ClpQuadraticObjective (const ClpQuadraticObjective &rhs, int type=0) | |
Copy constructor . | |
ClpQuadraticObjective (const ClpQuadraticObjective &rhs, int numberColumns, const int *whichColumns) | |
Subset constructor. | |
ClpQuadraticObjective & | operator= (const ClpQuadraticObjective &rhs) |
Assignment operator. | |
virtual | ~ClpQuadraticObjective () |
Destructor. | |
virtual ClpObjective * | clone () const |
Clone. | |
virtual ClpObjective * | subsetClone (int numberColumns, const int *whichColumns) const |
Subset clone. | |
void | loadQuadraticObjective (const int numberColumns, const CoinBigIndex *start, const int *column, const double *element, int numberExtendedColumns=-1) |
Load up quadratic objective. | |
void | loadQuadraticObjective (const CoinPackedMatrix &matrix) |
Default Constructor. | |
void | deleteQuadraticObjective () |
Get rid of quadratic objective. | |
Gets and sets | |
CoinPackedMatrix * | quadraticObjective () const |
Quadratic objective. | |
double * | linearObjective () const |
Linear objective. | |
int | numberExtendedColumns () const |
Length of linear objective which could be bigger. | |
int | numberColumns () const |
Number of columns in quadratic objective. | |
Private Attributes | |
Private member data | |
Quadratic objective | |
CoinPackedMatrix * | quadraticObjective_ |
double * | objective_ |
Objective. | |
double * | gradient_ |
Gradient. | |
int | numberColumns_ |
Useful to have number of columns about. | |
int | numberExtendedColumns_ |
Also length of linear objective which could be bigger. |
Definition at line 15 of file ClpQuadraticObjective.hpp.
|
Default Constructor.
|
|
Constructor from objective.
|
|
Copy constructor . If type is -1 then make sure half symmetric, if +1 then make sure full |
|
Subset constructor. Duplicates are allowed and order is as given. |
|
Destructor.
|
|
Returns gradient. If Quadratic then solution may be NULL, also returns an offset (to be added to current one) If refresh is false then uses last solution Uses model for scaling includeLinear 0 - no, 1 as is, 2 as feasible Implements ClpObjective. |
|
Returns reduced gradient.Returns an offset (to be added to current one).
Implements ClpObjective. |
|
Returns step length which gives minimum of objective for solution + theta * change vector up to maximum theta. arrays are numberColumns+numberRows Also sets current objective, predicted and at maximumTheta Implements ClpObjective. |
|
Returns gradient. If Quadratic then solution may be NULL, also returns an offset (to be added to current one) If refresh is false then uses last solution Uses model for scaling includeLinear 0 - no, 1 as is, 2 as feasible Implements ClpObjective. |
|
Delete columns in objective.
Implements ClpObjective. |
|
Scale objective.
Implements ClpObjective. |
|
Given a zeroed array sets nonlinear columns to 1. Returns number of nonlinear columns Reimplemented from ClpObjective. |
|
Assignment operator.
|
|
Clone.
Implements ClpObjective. |
|
Subset clone. Duplicates are allowed and order is as given. Reimplemented from ClpObjective. |
|
Load up quadratic objective. This is stored as a CoinPackedMatrix |
|
Default Constructor.
|
|
Get rid of quadratic objective.
|
|
Quadratic objective.
Definition at line 110 of file ClpQuadraticObjective.hpp. References quadraticObjective_. |
|
Linear objective.
Definition at line 112 of file ClpQuadraticObjective.hpp. References objective_. |
|
Length of linear objective which could be bigger.
Definition at line 114 of file ClpQuadraticObjective.hpp. References numberExtendedColumns_. |
|
Number of columns in quadratic objective.
Definition at line 117 of file ClpQuadraticObjective.hpp. References numberColumns_. |
|
Definition at line 126 of file ClpQuadraticObjective.hpp. Referenced by quadraticObjective(). |
|
Objective.
Definition at line 128 of file ClpQuadraticObjective.hpp. Referenced by linearObjective(). |
|
Gradient.
Definition at line 130 of file ClpQuadraticObjective.hpp. |
|
Useful to have number of columns about.
Definition at line 132 of file ClpQuadraticObjective.hpp. Referenced by numberColumns(). |
|
Also length of linear objective which could be bigger.
Definition at line 134 of file ClpQuadraticObjective.hpp. Referenced by numberExtendedColumns(). |