Click or drag to resize
Accord.NET (logo)

QuadraticObjectiveFunction Constructor (Double, Double, String)

Creates a new objective function specified through a string.

Namespace:  Accord.Math.Optimization
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public QuadraticObjectiveFunction(
	double[,] quadraticTerms,
	double[] linearTerms,
	params string[] variables
)
Request Example View Source

Parameters

quadraticTerms
Type: SystemDouble
A Hessian matrix of quadratic terms defining the quadratic objective function.
linearTerms
Type: SystemDouble
The vector of linear terms associated with quadraticTerms.
variables
Type: SystemString
The name for each variable in the problem.
See Also