#include <ClpLinearObjective.hpp>
Inheritance diagram for ClpLinearObjective:
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) |
Resize objective. | |
virtual void | deleteSome (int numberToDelete, const int *which) |
Delete columns in objective. | |
virtual void | reallyScale (const double *columnScale) |
Scale objective. | |
Constructors and destructors | |
ClpLinearObjective () | |
Default Constructor. | |
ClpLinearObjective (const double *objective, int numberColumns) | |
Constructor from objective. | |
ClpLinearObjective (const ClpLinearObjective &) | |
Copy constructor. | |
ClpLinearObjective (const ClpLinearObjective &rhs, int numberColumns, const int *whichColumns) | |
Subset constructor. | |
ClpLinearObjective & | operator= (const ClpLinearObjective &rhs) |
Assignment operator. | |
virtual | ~ClpLinearObjective () |
Destructor. | |
virtual ClpObjective * | clone () const |
Clone. | |
virtual ClpObjective * | subsetClone (int numberColumns, const int *whichColumns) const |
Subset clone. | |
Private Attributes | |
Private member data | |
Objective | |
double * | objective_ |
int | numberColumns_ |
number of columns |
Definition at line 14 of file ClpLinearObjective.hpp.
|
Default Constructor.
|
|
Constructor from objective.
|
|
Copy constructor.
|
|
Subset constructor. Duplicates are allowed and order is as given. |
|
Destructor.
|
|
Returns gradient. If Linear 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. |
|
Resize objective.
Implements ClpObjective. |
|
Delete columns in objective.
Implements ClpObjective. |
|
Scale objective.
Implements ClpObjective. |
|
Assignment operator.
|
|
Clone.
Implements ClpObjective. |
|
Subset clone. Duplicates are allowed and order is as given. Reimplemented from ClpObjective. |
|
Definition at line 94 of file ClpLinearObjective.hpp. |
|
number of columns
Definition at line 96 of file ClpLinearObjective.hpp. |