LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::mapqn::MapqnSolution< T > Struct Template Reference

Objective value and the name-keyed variable table of one bound program. More...

#include <line/api/mapqn/mapqn_solution.h>

Collaboration diagram for line::mapqn::MapqnSolution< T >:

Public Member Functions

get_variable (const std::string &name) const
 The named variable, or zero when the model did not create it.
get_utilization (int i) const
 Aggregate utilization of queue i (1-based), as the QR models write it.
get_utilization (int i, int k) const
 Per-phase utilization, with the e_i_k spelling as the fallback.
get_queue_length (int i) const
 Aggregate mean queue length of queue i (1-based).
get_queue_length (int i, int k) const
 Per-phase mean queue length, as the LR model writes it.
get_utilization_mva (int i, int k) const
 The MVA-shaped variant's spellings (Mapqn_bnd_lr_mva).
get_queue_length_mva (int i, int k) const

Public Attributes

objectiveValue = num_traits<T>::from_int(0)
std::map< std::string, T > variables

Detailed Description

template<class T>
struct line::mapqn::MapqnSolution< T >

Objective value and the name-keyed variable table of one bound program.

Definition at line 47 of file mapqn_solution.h.

Member Function Documentation

◆ get_queue_length() [1/2]

template<class T>
T line::mapqn::MapqnSolution< T >::get_queue_length ( int i) const
inline

Aggregate mean queue length of queue i (1-based).

Definition at line 68 of file mapqn_solution.h.

References get_variable().

◆ get_queue_length() [2/2]

template<class T>
T line::mapqn::MapqnSolution< T >::get_queue_length ( int i,
int k ) const
inline

Per-phase mean queue length, as the LR model writes it.

Definition at line 71 of file mapqn_solution.h.

References get_variable().

◆ get_queue_length_mva()

template<class T>
T line::mapqn::MapqnSolution< T >::get_queue_length_mva ( int i,
int k ) const
inline

Definition at line 79 of file mapqn_solution.h.

References get_variable().

◆ get_utilization() [1/2]

template<class T>
T line::mapqn::MapqnSolution< T >::get_utilization ( int i) const
inline

Aggregate utilization of queue i (1-based), as the QR models write it.

Definition at line 58 of file mapqn_solution.h.

References get_variable().

◆ get_utilization() [2/2]

template<class T>
T line::mapqn::MapqnSolution< T >::get_utilization ( int i,
int k ) const
inline

Per-phase utilization, with the e_i_k spelling as the fallback.

Definition at line 61 of file mapqn_solution.h.

References get_variable().

◆ get_utilization_mva()

template<class T>
T line::mapqn::MapqnSolution< T >::get_utilization_mva ( int i,
int k ) const
inline

The MVA-shaped variant's spellings (Mapqn_bnd_lr_mva).

Definition at line 76 of file mapqn_solution.h.

References get_variable().

◆ get_variable()

template<class T>
T line::mapqn::MapqnSolution< T >::get_variable ( const std::string & name) const
inline

The named variable, or zero when the model did not create it.

Definition at line 52 of file mapqn_solution.h.

References variables.

Referenced by get_queue_length(), get_queue_length(), get_queue_length_mva(), get_utilization(), get_utilization(), and get_utilization_mva().

Member Data Documentation

◆ objectiveValue

template<class T>
T line::mapqn::MapqnSolution< T >::objectiveValue = num_traits<T>::from_int(0)

Definition at line 48 of file mapqn_solution.h.

◆ variables

template<class T>
std::map<std::string, T> line::mapqn::MapqnSolution< T >::variables

Definition at line 49 of file mapqn_solution.h.

Referenced by get_variable().


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