Gets or sets the objective function.

Namespace: Extreme.Mathematics.Optimization
Assembly:   Extreme.Numerics (in Extreme.Numerics)
Version: 2.1.7017.0

Syntax

Visual Basic (Declaration)
Public Property ObjectiveFunction As RealFunction
C#
public RealFunction ObjectiveFunction { get; set; }
Visual C++
public:
property RealFunction^ ObjectiveFunction {
	RealFunction^ get ();
	void set (RealFunction^ value);
}

Remarks

The objective function is the function for which an extremum needs to be found.

Exceptions

ExceptionCondition
System.InvalidOperationExceptionAn attempt was made to change the objective function while the algorithm was running.