Cbc
2.10.3
|
Define Special Linked Ordered Sets. More...
#include <CbcLinked.hpp>
Public Member Functions | |
OsiLink () | |
OsiLink (const OsiSolverInterface *solver, int yRow, int yColumn, double meshSize) | |
Useful constructor -. More... | |
OsiLink (const OsiLink &) | |
virtual OsiObject * | clone () const |
Clone. More... | |
OsiLink & | operator= (const OsiLink &rhs) |
virtual | ~OsiLink () |
virtual double | infeasibility (const OsiBranchingInformation *info, int &whichWay) const |
Infeasibility - large is 0.5. More... | |
virtual double | feasibleRegion (OsiSolverInterface *solver, const OsiBranchingInformation *info) const |
Set bounds to fix the variable at the current (integer) value. More... | |
virtual OsiBranchingObject * | createBranch (OsiSolverInterface *solver, const OsiBranchingInformation *info, int way) const |
Creates a branching object. More... | |
virtual void | resetSequenceEtc (int numberColumns, const int *originalColumns) |
Redoes data when sequence numbers change. More... | |
int | numberLinks () const |
Number of links for each member. More... | |
virtual bool | canDoHeuristics () const |
Return true if object can take part in normal heuristics. More... | |
virtual bool | boundBranch () const |
Return true if branch should only bound variables. More... | |
double | infeasibility (const OsiSolverInterface *solver, int &whichWay) const |
virtual double | infeasibility (const OsiBranchingInformation *info, int &whichWay) const =0 |
double | infeasibility () const |
virtual double | feasibleRegion (OsiSolverInterface *solver) const |
virtual double | feasibleRegion (OsiSolverInterface *solver, const OsiBranchingInformation *info) const =0 |
![]() | |
OsiSOS () | |
OsiSOS (const OsiSolverInterface *solver, int numberMembers, const int *which, const double *weights, int type=1) | |
OsiSOS (const OsiSOS &) | |
OsiSOS & | operator= (const OsiSOS &rhs) |
virtual | ~OsiSOS () |
virtual double | upEstimate () const |
virtual double | downEstimate () const |
int | numberMembers () const |
const int * | members () const |
int | sosType () const |
int | setType () const |
const double * | weights () const |
void | setIntegerValued (bool yesNo) |
virtual bool | canHandleShadowPrices () const |
void | setNumberMembers (int value) |
int * | mutableMembers () const |
void | setSosType (int value) |
double * | mutableWeights () const |
double | infeasibility (const OsiSolverInterface *solver, int &whichWay) const |
double | infeasibility () const |
virtual double | feasibleRegion (OsiSolverInterface *solver) const |
![]() | |
OsiObject2 () | |
OsiObject2 (const OsiObject2 &) | |
OsiObject2 & | operator= (const OsiObject2 &rhs) |
virtual | ~OsiObject2 () |
void | setPreferredWay (int value) |
virtual int | preferredWay () const |
![]() | |
OsiObject () | |
OsiObject (const OsiObject &) | |
OsiObject & | operator= (const OsiObject &rhs) |
virtual | ~OsiObject () |
double | infeasibility (const OsiSolverInterface *solver, int &whichWay) const |
virtual double | checkInfeasibility (const OsiBranchingInformation *info) const |
virtual bool | canMoveToNearest () const |
virtual int | columnNumber () const |
int | priority () const |
void | setPriority (int priority) |
int | numberWays () const |
void | setNumberWays (int numberWays) |
void | setWhichWay (int way) |
int | whichWay () const |
double | infeasibility () const |
virtual void | resetBounds (const OsiSolverInterface *) |
virtual void | updateBefore (const OsiObject *) |
virtual void | updateAfter (const OsiObject *, const OsiObject *) |
Protected Attributes | |
double | meshSize_ |
data Current increment for y points More... | |
OsiOneLink * | data_ |
Links. More... | |
int | numberLinks_ |
Number of links. More... | |
int | yRow_ |
Row which defines y. More... | |
int | yColumn_ |
Column which defines y. More... | |
![]() | |
int * | members_ |
double * | weights_ |
int | numberMembers_ |
int | sosType_ |
bool | integerValued_ |
![]() | |
int | preferredWay_ |
double | otherInfeasibility_ |
![]() | |
double | infeasibility_ |
short | whichWay_ |
short | numberWays_ |
int | priority_ |
Define Special Linked Ordered Sets.
New style
members and weights may be stored in SOS object
This is for y and x*f(y) and z*g(y) etc
Definition at line 612 of file CbcLinked.hpp.
OsiLink::OsiLink | ( | ) |
OsiLink::OsiLink | ( | const OsiSolverInterface * | solver, |
int | yRow, | ||
int | yColumn, | ||
double | meshSize | ||
) |
Useful constructor -.
OsiLink::OsiLink | ( | const OsiLink & | ) |
|
virtual |
|
virtual |
Infeasibility - large is 0.5.
Reimplemented from OsiSOS.
|
virtual |
Set bounds to fix the variable at the current (integer) value.
Given an integer value, set the lower and upper bounds to fix the variable. Returns amount it had to move variable.
Reimplemented from OsiSOS.
|
virtual |
Creates a branching object.
The preferred direction is set by way
, 0 for down, 1 for up.
Reimplemented from OsiSOS.
|
virtual |
Redoes data when sequence numbers change.
Reimplemented from OsiSOS.
|
inline |
Number of links for each member.
Definition at line 658 of file CbcLinked.hpp.
|
inlinevirtual |
Return true if object can take part in normal heuristics.
Reimplemented from OsiSOS.
Definition at line 665 of file CbcLinked.hpp.
|
inlinevirtual |
Return true if branch should only bound variables.
Reimplemented from OsiObject.
Definition at line 671 of file CbcLinked.hpp.
double OsiObject::infeasibility |
virtual double OsiObject::infeasibility |
double OsiObject::infeasibility |
virtual double OsiObject::feasibleRegion |
virtual double OsiObject::feasibleRegion |
|
protected |
data Current increment for y points
Definition at line 679 of file CbcLinked.hpp.
|
protected |
Links.
Definition at line 681 of file CbcLinked.hpp.
|
protected |
Number of links.
Definition at line 683 of file CbcLinked.hpp.
|
protected |
Row which defines y.
Definition at line 685 of file CbcLinked.hpp.
|
protected |
Column which defines y.
Definition at line 687 of file CbcLinked.hpp.