#include <ClpObjective.hpp>
Inheritance diagram for ClpObjective:
Public Member Functions | |
Stuff | |
virtual double * | gradient (const ClpSimplex *model, const double *solution, double &offset, bool refresh, int includeLinear=2)=0 |
Returns gradient. | |
virtual double | reducedGradient (ClpSimplex *model, double *region, bool useFeasibleCosts)=0 |
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)=0 |
Returns step length which gives minimum of objective for solution + theta * change vector up to maximum theta. | |
virtual void | resize (int newNumberColumns)=0 |
Resize objective. | |
virtual void | deleteSome (int numberToDelete, const int *which)=0 |
Delete columns in objective. | |
virtual void | reallyScale (const double *columnScale)=0 |
Scale objective. | |
virtual int | markNonlinear (char *which) |
Given a zeroed array sets nonlinear columns to 1. | |
Constructors and destructors | |
ClpObjective () | |
Default Constructor. | |
ClpObjective (const ClpObjective &) | |
Copy constructor. | |
ClpObjective & | operator= (const ClpObjective &rhs) |
Assignment operator. | |
virtual | ~ClpObjective () |
Destructor. | |
virtual ClpObjective * | clone () const=0 |
Clone. | |
virtual ClpObjective * | subsetClone (int numberColumns, const int *whichColumns) const |
Subset clone. | |
Other | |
int | type () |
Returns type (above 63 is extra information). | |
int | activated () const |
Whether activated. | |
void | setActivated (int value) |
Set whether activated. | |
double | nonlinearOffset () const |
Objective offset. | |
Protected Attributes | |
Protected member data | |
double | offset_ |
Value of non-linear part of objective. | |
int | type_ |
Type of objective - linear is 1. | |
int | activated_ |
Whether activated. |
|
Default Constructor.
|
|
Copy constructor.
|
|
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 Implemented in ClpLinearObjective, and ClpQuadraticObjective. Referenced by ClpModel::getObjCoefficients(), and ClpModel::objective(). |
|
Returns reduced gradient.Returns an offset (to be added to current one).
Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
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 Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Resize objective.
Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Delete columns in objective.
Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Scale objective.
Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Given a zeroed array sets nonlinear columns to 1. Returns number of nonlinear columns Reimplemented in ClpQuadraticObjective. |
|
Assignment operator.
|
|
Clone.
Implemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Subset clone. Duplicates are allowed and order is as given. Derived classes need not provide this as it may not always make sense Reimplemented in ClpLinearObjective, and ClpQuadraticObjective. |
|
Returns type (above 63 is extra information).
Definition at line 91 of file ClpObjective.hpp. References type_. |
|
Whether activated.
Definition at line 94 of file ClpObjective.hpp. References activated_. |
|
Set whether activated.
Definition at line 97 of file ClpObjective.hpp. References activated_. |
|
Objective offset.
Definition at line 101 of file ClpObjective.hpp. References offset_. |
|
Value of non-linear part of objective.
Definition at line 111 of file ClpObjective.hpp. Referenced by nonlinearOffset(). |
|
Type of objective - linear is 1.
Definition at line 113 of file ClpObjective.hpp. Referenced by type(). |
|
Whether activated.
Definition at line 115 of file ClpObjective.hpp. Referenced by activated(), and setActivated(). |