BoundsConstraint

scalation.optimization.BoundsConstraint
trait BoundsConstraint(lower: VectorD, upper: VectorD)

The BoundsConstraint trait provides a mechanism for bouncing back at constraint boundaries.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SPSA

Members list

Value members

Concrete methods

def constrain(x: VectorD): Unit

Constraint the current point x, so that lower <= x <= upper by bouncing back from a violated contraint. !@param x the current point

Constraint the current point x, so that lower <= x <= upper by bouncing back from a violated contraint. !@param x the current point

Attributes