Linear Objective Class. More...
#include <ClpLinearObjective.hpp>


Public Member Functions | |
Stuff  | |
| virtual double * | gradient (const ClpSimplex *model, const double *solution, double &offset, bool refresh, int includeLinear=2) | 
| Returns objective coefficients.  More... | |
| virtual double | reducedGradient (ClpSimplex *model, double *region, bool useFeasibleCosts) | 
| Returns reduced gradient.Returns an offset (to be added to current one).  More... | |
| 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.  More... | |
| virtual double | objectiveValue (const ClpSimplex *model, const double *solution) const | 
| Return objective value (without any ClpModel offset) (model may be NULL)  More... | |
| virtual void | resize (int newNumberColumns) | 
| Resize objective.  More... | |
| virtual void | deleteSome (int numberToDelete, const int *which) | 
| Delete columns in objective.  More... | |
| virtual void | reallyScale (const double *columnScale) | 
| Scale objective.  More... | |
Constructors and destructors  | |
| ClpLinearObjective () | |
| Default Constructor.  More... | |
| ClpLinearObjective (const double *objective, int numberColumns) | |
| Constructor from objective.  More... | |
| ClpLinearObjective (const ClpLinearObjective &) | |
| Copy constructor.  More... | |
| ClpLinearObjective (const ClpLinearObjective &rhs, int numberColumns, const int *whichColumns) | |
| Subset constructor.  More... | |
| ClpLinearObjective & | operator= (const ClpLinearObjective &rhs) | 
| Assignment operator.  More... | |
| virtual | ~ClpLinearObjective () | 
| Destructor.  More... | |
| virtual ClpObjective * | clone () const | 
| Clone.  More... | |
| virtual ClpObjective * | subsetClone (int numberColumns, const int *whichColumns) const | 
| Subset clone.  More... | |
  Public Member Functions inherited from ClpObjective | |
| virtual int | markNonlinear (char *which) | 
| Given a zeroed array sets nonlinear columns to 1.  More... | |
| virtual void | newXValues () | 
| Say we have new primal solution - so may need to recompute.  More... | |
| ClpObjective () | |
| Default Constructor.  More... | |
| ClpObjective (const ClpObjective &) | |
| Copy constructor.  More... | |
| ClpObjective & | operator= (const ClpObjective &rhs) | 
| Assignment operator.  More... | |
| virtual | ~ClpObjective () | 
| Destructor.  More... | |
| int | type () const | 
| Returns type (above 63 is extra information)  More... | |
| void | setType (int value) | 
| Sets type (above 63 is extra information)  More... | |
| int | activated () const | 
| Whether activated.  More... | |
| void | setActivated (int value) | 
| Set whether activated.  More... | |
| double | nonlinearOffset () const | 
| Objective offset.  More... | |
Private Attributes | |
Private member data  | |
Objective  | |
| double * | objective_ | 
| number of columns  More... | |
| int | numberColumns_ | 
| number of columns  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from ClpObjective | |
| double | offset_ | 
| Value of non-linear part of objective.  More... | |
| int | type_ | 
| Type of objective - linear is 1.  More... | |
| int | activated_ | 
| Whether activated.  More... | |
Linear Objective Class.
Definition at line 17 of file ClpLinearObjective.hpp.
| ClpLinearObjective::ClpLinearObjective | ( | ) | 
Default Constructor.
| ClpLinearObjective::ClpLinearObjective | ( | const double * | objective, | 
| int | numberColumns | ||
| ) | 
Constructor from objective.
| ClpLinearObjective::ClpLinearObjective | ( | const ClpLinearObjective & | ) | 
Copy constructor.
| ClpLinearObjective::ClpLinearObjective | ( | const ClpLinearObjective & | rhs, | 
| int | numberColumns, | ||
| const int * | whichColumns | ||
| ) | 
Subset constructor.
Duplicates are allowed and order is as given.
      
  | 
  virtual | 
Destructor.
      
  | 
  virtual | 
Returns objective coefficients.
Offset is always set to 0.0. All other parameters unused.
Implements ClpObjective.
      
  | 
  virtual | 
Returns reduced gradient.Returns an offset (to be added to current one).
Implements ClpObjective.
      
  | 
  virtual | 
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.
      
  | 
  virtual | 
Return objective value (without any ClpModel offset) (model may be NULL)
Implements ClpObjective.
      
  | 
  virtual | 
Resize objective.
Implements ClpObjective.
      
  | 
  virtual | 
Delete columns in objective.
Implements ClpObjective.
      
  | 
  virtual | 
Scale objective.
Implements ClpObjective.
| ClpLinearObjective& ClpLinearObjective::operator= | ( | const ClpLinearObjective & | rhs | ) | 
Assignment operator.
      
  | 
  virtual | 
Clone.
Implements ClpObjective.
      
  | 
  virtual | 
      
  | 
  private | 
number of columns
Definition at line 97 of file ClpLinearObjective.hpp.
      
  | 
  private | 
number of columns
Definition at line 99 of file ClpLinearObjective.hpp.
 1.8.5