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

#include <line/opt/objectives.h>

Inheritance diagram for line::opt::BudgetConstraint:
Collaboration diagram for line::opt::BudgetConstraint:

Public Member Functions

 BudgetConstraint (double b, std::map< std::string, double >c={}, std::string n="")
double cost (const VariableValues &v) const
double evaluate (const EvaluationResult &, const VariableValues &v) const override
std::string generated_name () const override
Public Member Functions inherited from line::opt::Constraint
 Constraint (std::string n="")
virtual ~Constraint ()=default
std::string name () const
bool satisfied (const EvaluationResult &r, const VariableValues &v, double t=1e-6) const

Additional Inherited Members

Static Protected Member Functions inherited from line::opt::Constraint
static double upper (double a, double b)
static double lower (double a, double b)
Protected Attributes inherited from line::opt::Constraint
std::string name_

Detailed Description

Definition at line 39 of file objectives.h.

Constructor & Destructor Documentation

◆ BudgetConstraint()

line::opt::BudgetConstraint::BudgetConstraint ( double b,
std::map< std::string, double > c = {},
std::string n = "" )
inline

Member Function Documentation

◆ cost()

double line::opt::BudgetConstraint::cost ( const VariableValues & v) const
inline

Definition at line 39 of file objectives.h.

Referenced by BudgetConstraint().

◆ evaluate()

double line::opt::BudgetConstraint::evaluate ( const EvaluationResult & ,
const VariableValues & v ) const
inlineoverridevirtual

Implements line::opt::Constraint.

Definition at line 39 of file objectives.h.

Referenced by BudgetConstraint().

◆ generated_name()

std::string line::opt::BudgetConstraint::generated_name ( ) const
inlineoverridevirtual

Implements line::opt::Constraint.

Definition at line 39 of file objectives.h.

Referenced by BudgetConstraint().


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