CompactQuasiNewtonSolver.Solve Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Solves a model by using the specified parameters.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Function Solve ( _
parameters As ISolverParameters _
) As INonlinearSolution
public INonlinearSolution Solve(
ISolverParameters parameters
)
public:
virtual INonlinearSolution^ Solve(
ISolverParameters^ parameters
) sealed
abstract Solve :
parameters:ISolverParameters -> INonlinearSolution
override Solve :
parameters:ISolverParameters -> INonlinearSolution
public final function Solve(
parameters : ISolverParameters
) : INonlinearSolution
Parameters
- parameters
Type: Microsoft.SolverFoundation.Services.ISolverParameters
The parameters for the solver. This should be an instance of CompactQuasiNewtonSolverParams.
Return Value
Type: Microsoft.SolverFoundation.Services.INonlinearSolution
The solution from the solver.
Implements
IRowVariableSolver.Solve(ISolverParameters)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | parameters is nulla null reference (Nothing in Visual Basic). |
ArgumentException | parameters is not of type CompactQuasiNewtonSolverParams. |
ModelException | Either FunctionEvaluator() or GradientEvaluator() is not specified before the Solve method is called. |
.NET Framework Security
- 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.