Click or drag to resize

SimulatedAnnealingSolve Method

Minimizes a function value using SA algorithm.

Namespace: DWSIM.MathOps.MathEx.OptimizationL
Assembly: DWSIM.MathOps (in DWSIM.MathOps.dll) Version: 8.8.1.0
Syntax
public double[] Solve(
	Func<double[], double> functionbody,
	Func<double[], double[]> functiongradient,
	double[] vars,
	double[] lbounds = null,
	double[] ubounds = null
)
Request Example View Source

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

Double
vector of variables corresponding to the function's minimum value.
See Also