BFGSBMinimizerSolve Method |
Minimizes a function value using IPOPT solver.
Namespace: DWSIM.MathOpsAssembly: 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
)
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()
Request Example
View SourceParameters
- 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.
See Also