Class sdm::LPInterface
Class List > sdm > LPInterface
#include <lp_problem_interface.hpp>
Inherited by the following classes: sdm::LPBase
Public Functions
| Type | Name |
|---|---|
| virtual void | createConstraints (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & occupancy_state, IloEnv & env, IloModel & model, IloRangeArray & con, IloNumVarArray & var, number & index, number t) = 0 Create the constraints of the LP. |
| virtual Pair< std::shared_ptr< Action >, double > | createLP (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & occupancy_state, number t) = 0 Main function who is used to create the Linear program. |
| virtual void | createObjectiveFunction (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & occupancy_state, IloNumVarArray & var, IloObjective & obj, number t) = 0 Create a Objective Constraint of the LP. |
| virtual void | createVariables (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & occupancy_state, IloEnv & env, IloNumVarArray & var, number & index, number t) = 0 Create the variable which will be used to resolve the LP. |
| virtual std::shared_ptr< Action > | getVariableResult (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & occupancy_state, const IloCplex & cplex, const IloNumVarArray & var, number t) = 0 Get the result of the variable created. |
Public Functions Documentation
function createConstraints
virtual void sdm::LPInterface::createConstraints (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & occupancy_state,
IloEnv & env,
IloModel & model,
IloRangeArray & con,
IloNumVarArray & var,
number & index,
number t
) = 0
Parameters:
occupancy_stateenvconvarindext
function createLP
virtual Pair < std::shared_ptr< Action >, double > sdm::LPInterface::createLP (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & occupancy_state,
number t
) = 0
Parameters:
occupancy_statet
Returns:
Pair<std::shared_ptr<Action>,double>
function createObjectiveFunction
virtual void sdm::LPInterface::createObjectiveFunction (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & occupancy_state,
IloNumVarArray & var,
IloObjective & obj,
number t
) = 0
Parameters:
occupancy_statevarobjt
function createVariables
virtual void sdm::LPInterface::createVariables (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & occupancy_state,
IloEnv & env,
IloNumVarArray & var,
number & index,
number t
) = 0
Parameters:
occupancy_stateenvvart
function getVariableResult
virtual std::shared_ptr< Action > sdm::LPInterface::getVariableResult (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & occupancy_state,
const IloCplex & cplex,
const IloNumVarArray & var,
number t
) = 0
Parameters:
occupancy_statecplexvart
Returns:
std::shared_ptr<Action>
The documentation for this class was generated from the following file src/sdm/utils/linear_programming/lp_problem_interface.hpp