[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the value callback function that the solver invokes periodically in order to obtain function values for different variable values.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
You must set the value callback function before you try to solve the model.
The value callback function has the following arguments:
The first argument is the INonlinearModel that is being solved.
The second argument is a Int32 that represents the row index to be evaluated, which is a goal or a constraint.
The third argument is a ValuesByIndex that contains the current variable values that are accessible by index.
The fourth argument is a Boolean that indicates whether the current call is the first evaluator call with the current variable values.
The return value is a Double that is the value of the row for the current variable values.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.