Optimization class

Optimization algorithms for finding minima of functions.

Constructors

Optimization()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

bfgs(Function f, Function gradient, List<num> x0, {int maxIter = 1000, double tolerance = 1e-6}) → OptimizationResult
Minimizes a function using BFGS (Broyden-Fletcher-Goldfarb-Shanno) method.
conjugateGradient(Function f, Function gradient, List<num> x0, {int maxIter = 1000, double tolerance = 1e-6}) → OptimizationResult
Minimizes a function using Conjugate Gradient method (Fletcher-Reeves).
gradientDescent(Function f, Function gradient, List<num> x0, {double learningRate = 0.01, int maxIter = 1000, double tolerance = 1e-6}) → OptimizationResult
Minimizes a function using Gradient Descent.
nelderMead(Function f, List<num> x0, {int maxIter = 1000, double tolerance = 1e-6}) → OptimizationResult
Minimizes a function using Nelder-Mead simplex method (derivative-free).
penaltyMethod(Function f, List<Function> constraints, List<num> x0, {double penalty = 10.0, int maxIter = 1000, double tolerance = 1e-6}) → OptimizationResult
Minimizes a constrained function using penalty method.