LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::opt::Constraint Class Referenceabstract

#include <line/opt/objectives.h>

Inheritance diagram for line::opt::Constraint:
Collaboration diagram for line::opt::Constraint:

Public Member Functions

 Constraint (std::string n="")
virtual ~Constraint ()=default
virtual double evaluate (const EvaluationResult &, const VariableValues &) const =0
virtual std::string generated_name () const =0
std::string name () const
bool satisfied (const EvaluationResult &r, const VariableValues &v, double t=1e-6) const

Static Protected Member Functions

static double upper (double a, double b)
static double lower (double a, double b)

Protected Attributes

std::string name_

Detailed Description

Definition at line 33 of file objectives.h.

Constructor & Destructor Documentation

◆ Constraint()

◆ ~Constraint()

virtual line::opt::Constraint::~Constraint ( )
default

Member Function Documentation

◆ evaluate()

virtual double line::opt::Constraint::evaluate ( const EvaluationResult & ,
const VariableValues &  ) const
pure virtual

◆ generated_name()

virtual std::string line::opt::Constraint::generated_name ( ) const
pure virtual

◆ lower()

double line::opt::Constraint::lower ( double a,
double b )
inlinestaticprotected

Definition at line 33 of file objectives.h.

Referenced by Constraint(), and line::opt::ThroughputConstraint::evaluate().

◆ name()

std::string line::opt::Constraint::name ( ) const
inline

Definition at line 33 of file objectives.h.

Referenced by Constraint().

◆ satisfied()

bool line::opt::Constraint::satisfied ( const EvaluationResult & r,
const VariableValues & v,
double t = 1e-6 ) const
inline

Definition at line 33 of file objectives.h.

Referenced by Constraint().

◆ upper()

double line::opt::Constraint::upper ( double a,
double b )
inlinestaticprotected

Member Data Documentation

◆ name_

std::string line::opt::Constraint::name_
protected

Definition at line 33 of file objectives.h.

Referenced by Constraint().


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