Couenne::CouenneChooseVariable Class Reference

Choose a variable for branching. More...

#include <CouenneChooseVariable.hpp>

Collaboration diagram for Couenne::CouenneChooseVariable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CouenneChooseVariable ()
 Default Constructor.
 CouenneChooseVariable (const OsiSolverInterface *, CouenneProblem *, JnlstPtr jnlst)
 Constructor from solver (so we can set up arrays etc).
 CouenneChooseVariable (const CouenneChooseVariable &)
 Copy constructor.
CouenneChooseVariableoperator= (const CouenneChooseVariable &)
 Assignment operator.
virtual OsiChooseVariable * clone () const
 Clone.
virtual ~CouenneChooseVariable ()
 Destructor.
virtual int setupList (OsiBranchingInformation *, bool)
 Sets up strong list and clears all if initialize is true.
virtual bool feasibleSolution (const OsiBranchingInformation *info, const double *solution, int numberObjects, const OsiObject **objects)
 Returns true if solution looks feasible against given objects.

Static Public Member Functions

static void registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
 Add list of options to be read from file.

Protected Attributes

CouenneProblemproblem_
 Pointer to the associated MINLP problem.
JnlstPtr jnlst_
 journalist for detailed debug information

Detailed Description

Choose a variable for branching.

Definition at line 27 of file CouenneChooseVariable.hpp.


Constructor & Destructor Documentation

CouenneChooseVariable::CouenneChooseVariable (  ) 

Default Constructor.

Definition at line 23 of file CouenneChooseVariable.cpp.

Referenced by clone().

CouenneChooseVariable::CouenneChooseVariable ( const OsiSolverInterface *  ,
CouenneProblem ,
JnlstPtr  jnlst 
)

Constructor from solver (so we can set up arrays etc).

Definition at line 29 of file CouenneChooseVariable.cpp.

CouenneChooseVariable::CouenneChooseVariable ( const CouenneChooseVariable  ) 

Copy constructor.

Definition at line 38 of file CouenneChooseVariable.cpp.

virtual Couenne::CouenneChooseVariable::~CouenneChooseVariable (  )  [inline, virtual]

Destructor.

Definition at line 48 of file CouenneChooseVariable.hpp.


Member Function Documentation

CouenneChooseVariable & CouenneChooseVariable::operator= ( const CouenneChooseVariable  ) 

Assignment operator.

Definition at line 45 of file CouenneChooseVariable.cpp.

References jnlst_, and problem_.

virtual OsiChooseVariable* Couenne::CouenneChooseVariable::clone (  )  const [inline, virtual]

Clone.

Definition at line 44 of file CouenneChooseVariable.hpp.

References CouenneChooseVariable().

int CouenneChooseVariable::setupList ( OsiBranchingInformation *  ,
bool   
) [virtual]

Sets up strong list and clears all if initialize is true.

Returns number of infeasibilities. If returns -1 then has worked out node is infeasible!

Definition at line 55 of file CouenneChooseVariable.cpp.

References Couenne::AUX, Couenne::J_BRANCHING(), jnlst_, print(), and problem_.

bool CouenneChooseVariable::feasibleSolution ( const OsiBranchingInformation *  info,
const double *  solution,
int  numberObjects,
const OsiObject **  objects 
) [virtual]

Returns true if solution looks feasible against given objects.

Definition at line 135 of file CouenneChooseVariable.cpp.

References Couenne::CouenneProblem::checkNLP2(), Couenne::CouenneProblem::getFeasTol(), and problem_.

void CouenneChooseVariable::registerOptions ( Ipopt::SmartPtr< Bonmin::RegisteredOptions roptions  )  [static]

Add list of options to be read from file.

Definition at line 157 of file CouenneChooseVariable.cpp.

References Couenne::default_alpha.

Referenced by Couenne::CouenneSetup::registerAllOptions().


Member Data Documentation

CouenneProblem* Couenne::CouenneChooseVariable::problem_ [protected]

Pointer to the associated MINLP problem.

Definition at line 72 of file CouenneChooseVariable.hpp.

Referenced by feasibleSolution(), operator=(), and setupList().

JnlstPtr Couenne::CouenneChooseVariable::jnlst_ [protected]

journalist for detailed debug information

Definition at line 75 of file CouenneChooseVariable.hpp.

Referenced by operator=(), and setupList().


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:13:52 2011 by  doxygen 1.4.7