OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | List of all members
opengm::LpSolverCplex Class Reference

#include <lp_solver_cplex_old.hxx>

+ Inheritance diagram for opengm::LpSolverCplex:
+ Collaboration diagram for opengm::LpSolverCplex:

Classes

class  ConstraintType
 
class  Parameter
 

Public Types

typedef double LpValueType
 
typedef int LpIndexType
 
- Public Types inherited from opengm::LpSolverInterface
enum  LpVarType { Continous = 0, Binary = 1, Integer = 2 }
 

Public Member Functions

 LpSolverCplex (const Parameter &parameter=Parameter())
 
void addVariables (const UInt64Type numVar, const LpVarType varType, const LpValueType lowerBound=1.0, const LpValueType upperBound=1.0)
 
void addConstraint (const LpValueType lowerBound, const LpValueType upperBound, const std::string &name=std::string())
 
void addToConstraint (const UInt64Type constraintIndex, const UInt64Type lpVarIndex, const LpValueType coeff)
 
template<class LPVariableIndexIterator , class CoefficientIterator >
void addConstraint (LPVariableIndexIterator lpVarBegin, LPVariableIndexIterator lpVarEnd, CoefficientIterator coeffBegin, const LpValueType lowerBound, const LpValueType upperBound, const std::string &name=std::string())
 
void addVarsFinished ()
 
void setObjective (const UInt64Type lpVi, const LpValueType obj)
 
void setObjectiveFinished ()
 
void setupFinished ()
 
void updateObjective ()
 
void updateConstraints ()
 
UInt64Type numberOfVariables () const
 
void optimize ()
 
LpValueType lpArg (const LpIndexType lpVi) const
 
LpValueType lpValue () const
 
LpValueType bestLpValue () const
 
UInt64Type numbefOfVariables () const
 
UInt64Type numberOfConstraints () const
 

Detailed Description

Definition at line 14 of file lp_solver_cplex_old.hxx.

Member Typedef Documentation

Definition at line 18 of file lp_solver_cplex_old.hxx.

Definition at line 17 of file lp_solver_cplex_old.hxx.

Constructor & Destructor Documentation

opengm::LpSolverCplex::LpSolverCplex ( const Parameter parameter = Parameter())
inline

Definition at line 70 of file lp_solver_cplex_old.hxx.

Member Function Documentation

void opengm::LpSolverCplex::addConstraint ( const LpValueType  lowerBound,
const LpValueType  upperBound,
const std::string &  name = std::string() 
)
inline

Definition at line 107 of file lp_solver_cplex_old.hxx.

template<class LPVariableIndexIterator , class CoefficientIterator >
void opengm::LpSolverCplex::addConstraint ( LPVariableIndexIterator  lpVarBegin,
LPVariableIndexIterator  lpVarEnd,
CoefficientIterator  coeffBegin,
const LpValueType  lowerBound,
const LpValueType  upperBound,
const std::string &  name = std::string() 
)
inline

Definition at line 126 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::addToConstraint ( const UInt64Type  constraintIndex,
const UInt64Type  lpVarIndex,
const LpValueType  coeff 
)
inline

Definition at line 116 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::addVariables ( const UInt64Type  numVar,
const LpVarType  varType,
const LpValueType  lowerBound = 1.0,
const LpValueType  upperBound = 1.0 
)
inline

Definition at line 88 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::addVarsFinished ( )
inline

Definition at line 147 of file lp_solver_cplex_old.hxx.

LpValueType opengm::LpSolverCplex::bestLpValue ( ) const
inline

Definition at line 264 of file lp_solver_cplex_old.hxx.

LpValueType opengm::LpSolverCplex::lpArg ( const LpIndexType  lpVi) const
inline

Definition at line 254 of file lp_solver_cplex_old.hxx.

LpValueType opengm::LpSolverCplex::lpValue ( ) const
inline

Definition at line 259 of file lp_solver_cplex_old.hxx.

UInt64Type opengm::LpSolverCplex::numbefOfVariables ( ) const
inline

Definition at line 268 of file lp_solver_cplex_old.hxx.

UInt64Type opengm::LpSolverCplex::numberOfConstraints ( ) const
inline

Definition at line 272 of file lp_solver_cplex_old.hxx.

UInt64Type opengm::LpSolverCplex::numberOfVariables ( ) const
inline

Definition at line 186 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::optimize ( )
inline

Definition at line 190 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::setObjective ( const UInt64Type  lpVi,
const LpValueType  obj 
)
inline

Definition at line 153 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::setObjectiveFinished ( )
inline

Definition at line 159 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::setupFinished ( )
inline

Definition at line 165 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::updateConstraints ( )
inline

Definition at line 183 of file lp_solver_cplex_old.hxx.

void opengm::LpSolverCplex::updateObjective ( )
inline

Definition at line 180 of file lp_solver_cplex_old.hxx.