Bonmin  1.7
Public Member Functions | Protected Attributes | Private Member Functions
Bonmin::CbcNlpStrategy Class Reference

#include <BonCbcNlpStrategy.hpp>

List of all members.

Public Member Functions

 CbcNlpStrategy (int maxFailures, int maxInfeasibles, int pretendFailIsInfeasible)
 CbcNlpStrategy (const CbcNlpStrategy &)
virtual ~CbcNlpStrategy ()
virtual CbcStrategy * clone () const
 Clone.
virtual CbcNodeInfo * fullNodeInfo (CbcModel *model, int numberRowsAtContinuous) const
 Return a new Full node information pointer (descendant of CbcFullNodeInfo)
virtual CbcNodeInfo * partialNodeInfo (CbcModel *model, CbcNodeInfo *parent, CbcNode *owner, int numberChangedBounds, const int *variables, const double *boundChanges, const CoinWarmStartDiff *basisDiff) const
 Return a new Partial node information pointer (descendant of CbcPartialNodeInfo)
virtual int status (CbcModel *model, CbcNodeInfo *parent, int whereFrom)
 After a CbcModel::resolve this can return a status.
void setMaxFailure (int value)
 set maximum number of consecutive failures in a branch before giving up
void setMaxInfeasible (int value)
 maximum number of consecutive infeasible nodes before giving up
virtual void setupCutGenerators (CbcModel &model)
 Setup cut generators.
virtual void setupHeuristics (CbcModel &model)
 Setup heuristics.
virtual void setupPrinting (CbcModel &model, int modelLogLevel)
 Do printing stuff.
virtual void setupOther (CbcModel &model)
 Other stuff e.g. strong branching and preprocessing.
bool hasFailed ()

Protected Attributes

bool hasFailed_
 did we fail?
int maxFailure_
 maximum number of consecutive failures in a branch before giving up
int maxInfeasible_
 maximum number of consecutive infeasible nodes before giving up
int pretendFailIsInfeasible_
 If yes when a problem is not solved (failed to be solved) will pretend that it is infeasible.

Private Member Functions

CbcNlpStrategyoperator= (const CbcNlpStrategy &rhs)
 Illegal Assignment operator.

Detailed Description

Definition at line 23 of file BonCbcNlpStrategy.hpp.


Constructor & Destructor Documentation

Bonmin::CbcNlpStrategy::CbcNlpStrategy ( int  maxFailures,
int  maxInfeasibles,
int  pretendFailIsInfeasible 
)
Bonmin::CbcNlpStrategy::CbcNlpStrategy ( const CbcNlpStrategy )
virtual Bonmin::CbcNlpStrategy::~CbcNlpStrategy ( ) [virtual]

Member Function Documentation

virtual CbcStrategy* Bonmin::CbcNlpStrategy::clone ( ) const [virtual]

Clone.

virtual CbcNodeInfo* Bonmin::CbcNlpStrategy::fullNodeInfo ( CbcModel *  model,
int  numberRowsAtContinuous 
) const [virtual]

Return a new Full node information pointer (descendant of CbcFullNodeInfo)

virtual CbcNodeInfo* Bonmin::CbcNlpStrategy::partialNodeInfo ( CbcModel *  model,
CbcNodeInfo *  parent,
CbcNode *  owner,
int  numberChangedBounds,
const int *  variables,
const double *  boundChanges,
const CoinWarmStartDiff *  basisDiff 
) const [virtual]

Return a new Partial node information pointer (descendant of CbcPartialNodeInfo)

virtual int Bonmin::CbcNlpStrategy::status ( CbcModel *  model,
CbcNodeInfo *  parent,
int  whereFrom 
) [virtual]

After a CbcModel::resolve this can return a status.

-1 no effect 0 treat as optimal 1 as 0 but do not do any more resolves (i.e. no more cuts) 2 treat as infeasible

void Bonmin::CbcNlpStrategy::setMaxFailure ( int  value) [inline]

set maximum number of consecutive failures in a branch before giving up

Definition at line 56 of file BonCbcNlpStrategy.hpp.

References maxFailure_.

void Bonmin::CbcNlpStrategy::setMaxInfeasible ( int  value) [inline]

maximum number of consecutive infeasible nodes before giving up

Definition at line 61 of file BonCbcNlpStrategy.hpp.

References maxInfeasible_.

virtual void Bonmin::CbcNlpStrategy::setupCutGenerators ( CbcModel &  model) [virtual]

Setup cut generators.

virtual void Bonmin::CbcNlpStrategy::setupHeuristics ( CbcModel &  model) [virtual]

Setup heuristics.

virtual void Bonmin::CbcNlpStrategy::setupPrinting ( CbcModel &  model,
int  modelLogLevel 
) [virtual]

Do printing stuff.

virtual void Bonmin::CbcNlpStrategy::setupOther ( CbcModel &  model) [virtual]

Other stuff e.g. strong branching and preprocessing.

bool Bonmin::CbcNlpStrategy::hasFailed ( ) [inline]

Definition at line 75 of file BonCbcNlpStrategy.hpp.

References hasFailed_.

CbcNlpStrategy& Bonmin::CbcNlpStrategy::operator= ( const CbcNlpStrategy rhs) [private]

Illegal Assignment operator.


Member Data Documentation

did we fail?

Definition at line 82 of file BonCbcNlpStrategy.hpp.

Referenced by hasFailed().

maximum number of consecutive failures in a branch before giving up

Definition at line 84 of file BonCbcNlpStrategy.hpp.

Referenced by setMaxFailure().

maximum number of consecutive infeasible nodes before giving up

Definition at line 86 of file BonCbcNlpStrategy.hpp.

Referenced by setMaxInfeasible().

If yes when a problem is not solved (failed to be solved) will pretend that it is infeasible.

Definition at line 89 of file BonCbcNlpStrategy.hpp.


The documentation for this class was generated from the following file: