Minimize

class Minimize

Minimize the objective function within the bounds up to some tolerance.

Subclassed by feasst::GoldenSearch

Arguments

args:

  • tolerance: solve within this tolerance.

  • lower: lower bound.

  • upper: upper bound.

Public Functions

double tolerance() const

Return the tolerance.

double lower() const

Return lower bound.

void set_lower(const double lower)

Set lower bound.

double upper() const

Return upper bound.

void set_upper(const double upper)

Set upper bound.

virtual void bracket(double *lower, double *upper, Formula *formula) = 0

Return reduced bounds containing a minimum.

double minimum(Formula *formula)

Return the minimum of the Formula.