Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
limbo::solvers::GurobiLinearApi< T, V > Class Template Reference

Gurobi API with limbo::solvers::LinearModel. More...

#include <GurobiApi.h>

Public Types

typedef LinearModel< T, V > model_type
 linear model type for the problem
 
typedef
model_type::coefficient_value_type 
coefficient_value_type
 
typedef
model_type::variable_value_type 
variable_value_type
 
typedef model_type::variable_type variable_type
 
typedef model_type::constraint_type constraint_type
 
typedef model_type::expression_type expression_type
 
typedef model_type::term_type term_type
 
typedef model_type::property_type property_type
 
typedef GurobiParameters parameter_type
 

Public Member Functions

 GurobiLinearApi (model_type *model)
 constructor More...
 
 ~GurobiLinearApi ()
 destructor
 
SolverProperty operator() (parameter_type *param=NULL)
 API to run the algorithm. More...
 
void errorHandler (GRBenv *env, int error) const
 error handler More...
 

Protected Member Functions

 GurobiLinearApi (GurobiLinearApi const &rhs)
 copy constructor, forbidden More...
 
GurobiLinearApioperator= (GurobiLinearApi const &rhs)
 assignment, forbidden More...
 

Protected Attributes

model_typem_model
 model for the problem
 
GRBmodel * m_grbModel
 model for Gurobi
 

Detailed Description

template<typename T, typename V>
class limbo::solvers::GurobiLinearApi< T, V >

Gurobi API with limbo::solvers::LinearModel.

Template Parameters
Tcoefficient type
Vvariable type

Definition at line 76 of file GurobiApi.h.

Constructor & Destructor Documentation

template<typename T , typename V >
limbo::solvers::GurobiLinearApi< T, V >::GurobiLinearApi ( model_type model)
inline

constructor

Parameters
modelpointer to the model of problem

Definition at line 94 of file GurobiApi.h.

template<typename T , typename V >
limbo::solvers::GurobiLinearApi< T, V >::GurobiLinearApi ( GurobiLinearApi< T, V > const &  rhs)
protected

copy constructor, forbidden

Parameters
rhsright hand side

Member Function Documentation

template<typename T , typename V >
void limbo::solvers::GurobiLinearApi< T, V >::errorHandler ( GRBenv *  env,
int  error 
) const

error handler

Parameters
envenvironment
errorerror type

Definition at line 244 of file GurobiApi.h.

template<typename T , typename V >
SolverProperty limbo::solvers::GurobiLinearApi< T, V >::operator() ( parameter_type param = NULL)
inline

API to run the algorithm.

Parameters
paramset additional parameters, use default if NULL

Definition at line 106 of file GurobiApi.h.

template<typename T , typename V >
GurobiLinearApi& limbo::solvers::GurobiLinearApi< T, V >::operator= ( GurobiLinearApi< T, V > const &  rhs)
protected

assignment, forbidden

Parameters
rhsright hand side

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