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

Result of pas_placement. More...

#include <line/api/pfqn/pas_placement.h>

Public Member Functions

std::vector< std::size_t > placeable (const std::vector< T > &x) const
 Classes that may be placed next, given the remaining per-class counts.

Public Attributes

Matrix< T > P
 precedence closure, P(i, j) = 1 iff i must precede j

Detailed Description

template<class T>
struct line::pfqn::PasPlacement< T >

Result of pas_placement.

Definition at line 48 of file pas_placement.h.

Member Function Documentation

◆ placeable()

template<class T>
std::vector< std::size_t > line::pfqn::PasPlacement< T >::placeable ( const std::vector< T > & x) const
inline

Classes that may be placed next, given the remaining per-class counts.

Returns
0-based class indices, in increasing order (MATLAB's find order)

Definition at line 55 of file pas_placement.h.

References line::Matrix< T >::cols(), line::InputError::InputError(), P, and line::Matrix< T >::rows().

Member Data Documentation

◆ P

template<class T>
Matrix<T> line::pfqn::PasPlacement< T >::P

precedence closure, P(i, j) = 1 iff i must precede j

Definition at line 49 of file pas_placement.h.

Referenced by line::pfqn::pas_placement(), and placeable().


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