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

#include <lp_solver_gurobi_old.hxx>

+ Inheritance diagram for opengm::LpSolverGurobi:
+ Collaboration diagram for opengm::LpSolverGurobi:

Classes

struct  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

 LpSolverGurobi (const Parameter &parameter=Parameter())
 
void addVariables (const UInt64Type numVar, const LpVarType varType, const LpValueType lowerBound=0.0, const LpValueType upperBound=1.0)
 
void setObjective (const UInt64Type lpVi, const LpValueType obj)
 
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 updateObjective ()
 
void updateConstraints ()
 
void setupFinished ()
 
UInt64Type numberOfVariables () const
 
void optimize ()
 
LpValueType lpArg (const LpIndexType lpVi) const
 
LpValueType lpValue () const
 
LpValueType bestLpValue () const
 

Detailed Description

Definition at line 12 of file lp_solver_gurobi_old.hxx.

Member Typedef Documentation

Definition at line 15 of file lp_solver_gurobi_old.hxx.

Definition at line 14 of file lp_solver_gurobi_old.hxx.

Constructor & Destructor Documentation

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

Definition at line 128 of file lp_solver_gurobi_old.hxx.

Member Function Documentation

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

Definition at line 164 of file lp_solver_gurobi_old.hxx.

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

Definition at line 139 of file lp_solver_gurobi_old.hxx.

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

Definition at line 256 of file lp_solver_gurobi_old.hxx.

+ Here is the call graph for this function:

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

Definition at line 246 of file lp_solver_gurobi_old.hxx.

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

Definition at line 251 of file lp_solver_gurobi_old.hxx.

+ Here is the caller graph for this function:

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

Definition at line 228 of file lp_solver_gurobi_old.hxx.

void opengm::LpSolverGurobi::optimize ( )
inline

Definition at line 232 of file lp_solver_gurobi_old.hxx.

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

Definition at line 159 of file lp_solver_gurobi_old.hxx.

void opengm::LpSolverGurobi::setupFinished ( )
inline

Definition at line 223 of file lp_solver_gurobi_old.hxx.

void opengm::LpSolverGurobi::updateConstraints ( )
inline

Definition at line 219 of file lp_solver_gurobi_old.hxx.

void opengm::LpSolverGurobi::updateObjective ( )
inline

Definition at line 215 of file lp_solver_gurobi_old.hxx.