LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::lqn::NlpRate Struct Reference

The queue-dependent rate of one station, r(n) = softmin(n, m) [* lld(n)], or n at a delay. More...

#include <line/api/lqn/lqn_export_nlp.h>

Collaboration diagram for line::lqn::NlpRate:

Public Member Functions

double operator() (double n) const
nlp_detail::cplx operator() (const nlp_detail::cplx &n) const
double deriv (double n) const
 Derivative by complex step: imag(f(n + 1e-20 i)) / 1e-20.

Public Attributes

bool delay = false
double mult = 1.0
double alpha = 20.0
std::shared_ptr< const nlp_detail::LldExpr > lld

Detailed Description

The queue-dependent rate of one station, r(n) = softmin(n, m) [* lld(n)], or n at a delay.

Definition at line 653 of file lqn_export_nlp.h.

Member Function Documentation

◆ deriv()

double line::lqn::NlpRate::deriv ( double n) const
inline

Derivative by complex step: imag(f(n + 1e-20 i)) / 1e-20.

Definition at line 672 of file lqn_export_nlp.h.

◆ operator()() [1/2]

nlp_detail::cplx line::lqn::NlpRate::operator() ( const nlp_detail::cplx & n) const
inline

Definition at line 665 of file lqn_export_nlp.h.

References alpha, delay, lld, mult, and line::lqn::nlp_detail::softmin().

◆ operator()() [2/2]

double line::lqn::NlpRate::operator() ( double n) const
inline

Definition at line 659 of file lqn_export_nlp.h.

References alpha, delay, lld, mult, and line::lqn::nlp_detail::softmin().

Member Data Documentation

◆ alpha

double line::lqn::NlpRate::alpha = 20.0

Definition at line 656 of file lqn_export_nlp.h.

Referenced by line::lqn::lqn_nlp_program(), operator()(), and operator()().

◆ delay

bool line::lqn::NlpRate::delay = false

Definition at line 654 of file lqn_export_nlp.h.

Referenced by line::lqn::lqn_nlp_program(), operator()(), and operator()().

◆ lld

std::shared_ptr<const nlp_detail::LldExpr> line::lqn::NlpRate::lld

Definition at line 657 of file lqn_export_nlp.h.

Referenced by line::lqn::lqn_nlp_program(), operator()(), and operator()().

◆ mult

double line::lqn::NlpRate::mult = 1.0

Definition at line 655 of file lqn_export_nlp.h.

Referenced by line::lqn::lqn_nlp_program(), operator()(), and operator()().


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