_Minimize

it.grypho.scala.leonardo.optimize._Minimize
case class _Minimize(f: _Expression, vars: Vector[_Variable], x0: _Expression, bounds: Option[(_Expression, _Expression)], method: MinimizeMethod) extends _Expression

minimize(f, [[x], [y]], x0, method) and minimize(f, [[x], [y]], x0, lb, ub, method) — the numeric minimiser as an n×1 column (F_0010 slice 5).

The variables are a column, unlike the symbolic four, because a varargs tuple cannot be followed by a starting point, bounds and a method; the column is also the shape x0 and the answer have, so one is a drop-in warm start for the next. The variables are binders (the answer does not mention them), excluded from children.

Declines — stays symbolic — whenever minimize does; the REPL appends why.

Value parameters

bounds

the lower and upper bounds, same shape, entries may be inf / -inf

f

the objective

method

the method, always named

vars

the variables, in the order of x0

x0

the starting point: an n×1 column, or a number when n = 1

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait _Expression
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def children: List[_Expression]

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Sub-expressions subject to recursive structural traversal. Binder positions (e.g. the differentiation variable) are excluded.

Attributes

Definition Classes

The solver's full answer: the certified result, or why there is none. What the REPL queries to explain a decline (F_0052 Decision A); eval is defined over it, and it is computed once per environment, so the note reads the solve eval ran (F_0212).

The solver's full answer: the certified result, or why there is none. What the REPL queries to explain a decline (F_0052 Decision A); eval is defined over it, and it is computed once per environment, so the note reads the solve eval ran (F_0212).

Attributes

override def eval(env: Environment): Either[_Expression, _Value]

Reduces this expression in the given environment.

Reduces this expression in the given environment.

Value parameters

env

variable bindings and display precision

Attributes

Returns

Right(v) when all free variables resolved to concrete values; Left(e) when reduction is partial or impossible

Definition Classes
override def rebuild(c: List[_Expression]): _Expression

Reconstructs the same node shape with replacement sub-expressions.

Reconstructs the same node shape with replacement sub-expressions.

Value parameters

newChildren

replacements in the same order and count as children

Attributes

Definition Classes
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Inherited fields

lazy val freeVars: Set[String]

Cached set of free variable names; O(1) after the first access.

Cached set of free variable names; O(1) after the first access.

Attributes

Inherited from:
_Expression