#include <ClpObjective.hpp>
Inheritance diagram for ClpObjective:
Public Member Functions | |
Stuff | |
virtual double * | gradient (const double *solution, double &offset, bool refresh)=0 |
virtual void | resize (int newNumberColumns)=0 |
Resize objective. | |
virtual void | deleteSome (int numberToDelete, const int *which)=0 |
Delete columns in objective. | |
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 |
Other | |
int | type () |
Returns type (above 63 is extra information). | |
Protected Attributes | |
Protected member data | |
int | type_ |
Type of objective - linear is 1. |
Abstract Base Class for describing an objective function
Definition at line 15 of file ClpObjective.hpp.
|
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 Implemented in ClpLinearObjective, and ClpQuadraticObjective. Referenced by ClpModel::loadQuadraticObjective(), and ClpModel::objective(). |
|
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. Definition at line 53 of file ClpObjective.cpp. Referenced by ClpModel::ClpModel().
00055 { 00056 std::cerr<<"subsetClone not supported - ClpObjective"<<std::endl; 00057 abort(); 00058 return NULL; 00059 } |