Simulated AnnealingSolve Method
Minimizes a function value using SA algorithm.
Definition
Namespace: DWSIM.MathOps.MathEx.OptimizationL
Assembly: DWSIM.MathOps (in DWSIM.MathOps.dll) Version: 10.0.0.0
vector of variables corresponding to the function's minimum value.
Assembly: DWSIM.MathOps (in DWSIM.MathOps.dll) Version: 10.0.0.0
C#
public double[] Solve(
Func<double[], double> functionbody,
Func<double[], double[]> functiongradient,
double[] vars,
double[] lbounds = null,
double[] ubounds = null
)VB
Public Function Solve (
functionbody As Func(Of Double(), Double),
functiongradient As Func(Of Double(), Double()),
vars As Double(),
Optional lbounds As Double() = Nothing,
Optional ubounds As Double() = Nothing
) As Double()Parameters
- functionbody FuncDouble, Double
- f(x) where x is a vector of doubles, returns the value of the function.
- functiongradient FuncDouble, Double
- Optional. g(x) where x is a vector of doubles, returns the value of the gradient of the function with respect to each variable.
- vars Double
- initial values for x
- lbounds Double (Optional)
- lower bounds for x
- ubounds Double (Optional)
- upper bounds for x
Return Value
Doublevector of variables corresponding to the function's minimum value.