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::NetworkSimplex< T, V > Class Template Reference

Network simplex algorithm for min-cost flow. More...

#include <DualMinCostFlow.h>

Inheritance diagram for limbo::solvers::NetworkSimplex< T, V >:
limbo::solvers::MinCostFlowSolver< T, V > limbo::solvers::MinCostFlowSolver< T, V >

Public Types

typedef T value_type
 value type
 
typedef MinCostFlowSolver< T, V > base_type
 base type
 
typedef base_type::dualsolver_type dualsolver_type
 dual min-cost flow solver type
 
typedef lemon::NetworkSimplex
< typename
dualsolver_type::graph_type,
value_type, value_type
alg_type
 algorithm type
 
typedef T value_type
 value type
 
typedef MinCostFlowSolver< T, V > base_type
 base type
 
typedef
base_type::primalsolver_type 
primalsolver_type
 dual min-cost flow solver type
 
typedef lemon::NetworkSimplex
< typename
primalsolver_type::graph_type,
value_type, value_type
alg_type
 algorithm type
 
- Public Types inherited from limbo::solvers::MinCostFlowSolver< T, V >
typedef DualMinCostFlow< T, V > dualsolver_type
 dual min-cost flow solver type
 
typedef MinCostFlow< T, V > primalsolver_type
 dual min-cost flow solver type
 

Public Member Functions

 NetworkSimplex (typename alg_type::PivotRule pivotRule=alg_type::BLOCK_SEARCH)
 constructor More...
 
 NetworkSimplex (NetworkSimplex const &rhs)
 copy constructor More...
 
NetworkSimplexoperator= (NetworkSimplex const &rhs)
 assignment More...
 
virtual SolverProperty operator() (dualsolver_type *d)
 API to run min-cost flow solver. More...
 
 NetworkSimplex (typename alg_type::PivotRule pivotRule=alg_type::BLOCK_SEARCH)
 constructor More...
 
 NetworkSimplex (NetworkSimplex const &rhs)
 copy constructor More...
 
NetworkSimplexoperator= (NetworkSimplex const &rhs)
 assignment More...
 
virtual SolverProperty operator() (primalsolver_type *d)
 API to run min-cost flow solver. More...
 
- Public Member Functions inherited from limbo::solvers::MinCostFlowSolver< T, V >
 MinCostFlowSolver ()
 constructor
 
 MinCostFlowSolver (MinCostFlowSolver const &rhs)
 copy constructor More...
 
MinCostFlowSolveroperator= (MinCostFlowSolver const &rhs)
 assignment More...
 
virtual ~MinCostFlowSolver ()
 destructor
 
 MinCostFlowSolver ()
 constructor
 
 MinCostFlowSolver (MinCostFlowSolver const &rhs)
 copy constructor More...
 
MinCostFlowSolveroperator= (MinCostFlowSolver const &rhs)
 assignment More...
 
virtual ~MinCostFlowSolver ()
 destructor
 

Protected Member Functions

void copy (NetworkSimplex const &rhs)
 copy object
 
void copy (NetworkSimplex const &rhs)
 copy object
 
- Protected Member Functions inherited from limbo::solvers::MinCostFlowSolver< T, V >
void copy (MinCostFlowSolver const &)
 copy object
 
void copy (MinCostFlowSolver const &)
 copy object
 

Protected Attributes

alg_type::PivotRule m_pivotRule
 pivot rule for the algorithm, FIRST_ELIGIBLE, BEST_ELIGIBLE, BLOCK_SEARCH, CANDIDATE_LIST, ALTERING_LIST
 

Detailed Description

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

Network simplex algorithm for min-cost flow.

Template Parameters
Tcoefficient type
Vvariable type

Definition at line 35 of file DualMinCostFlow.h.

Constructor & Destructor Documentation

template<typename T , typename V >
limbo::solvers::NetworkSimplex< T, V >::NetworkSimplex ( typename alg_type::PivotRule  pivotRule = alg_type::BLOCK_SEARCH)
inline

constructor

Parameters
pivotRulepivot rule

Definition at line 802 of file DualMinCostFlow.h.

template<typename T , typename V >
limbo::solvers::NetworkSimplex< T, V >::NetworkSimplex ( NetworkSimplex< T, V > const &  rhs)
inline

copy constructor

Parameters
rhsright hand side

Definition at line 809 of file DualMinCostFlow.h.

template<typename T , typename V >
limbo::solvers::NetworkSimplex< T, V >::NetworkSimplex ( typename alg_type::PivotRule  pivotRule = alg_type::BLOCK_SEARCH)
inline

constructor

Parameters
pivotRulepivot rule

Definition at line 706 of file MinCostFlow.h.

template<typename T , typename V >
limbo::solvers::NetworkSimplex< T, V >::NetworkSimplex ( NetworkSimplex< T, V > const &  rhs)
inline

copy constructor

Parameters
rhsright hand side

Definition at line 713 of file MinCostFlow.h.

Member Function Documentation

template<typename T , typename V >
virtual SolverProperty limbo::solvers::NetworkSimplex< T, V >::operator() ( primalsolver_type d)
inlinevirtual

API to run min-cost flow solver.

Parameters
ddual min-cost flow object

Implements limbo::solvers::MinCostFlowSolver< T, V >.

Definition at line 732 of file MinCostFlow.h.

template<typename T , typename V >
virtual SolverProperty limbo::solvers::NetworkSimplex< T, V >::operator() ( dualsolver_type d)
inlinevirtual

API to run min-cost flow solver.

Parameters
ddual min-cost flow object

Implements limbo::solvers::MinCostFlowSolver< T, V >.

Definition at line 828 of file DualMinCostFlow.h.

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

assignment

Parameters
rhsright hand side

Definition at line 720 of file MinCostFlow.h.

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

assignment

Parameters
rhsright hand side

Definition at line 816 of file DualMinCostFlow.h.


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