SimplexSolverParams.NotifyEndPivot Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Defines the callback function called after the pivot.
Namespace: Microsoft.SolverFoundation.Solvers
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Overridable Function NotifyEndPivot ( _
threadIndex As Integer, _
stat As ILinearSimplexStatistics, _
pi As ISimplexPivotInformation _
) As Boolean
public virtual bool NotifyEndPivot(
int threadIndex,
ILinearSimplexStatistics stat,
ISimplexPivotInformation pi
)
public:
virtual bool NotifyEndPivot(
int threadIndex,
ILinearSimplexStatistics^ stat,
ISimplexPivotInformation^ pi
)
abstract NotifyEndPivot :
threadIndex:int *
stat:ILinearSimplexStatistics *
pi:ISimplexPivotInformation -> bool
override NotifyEndPivot :
threadIndex:int *
stat:ILinearSimplexStatistics *
pi:ISimplexPivotInformation -> bool
public function NotifyEndPivot(
threadIndex : int,
stat : ILinearSimplexStatistics,
pi : ISimplexPivotInformation
) : boolean
Parameters
- threadIndex
Type: System.Int32
The thread identifier for the simplex solver.
- stat
Type: Microsoft.SolverFoundation.Services.ILinearSimplexStatistics
Statistical information used by a simplex solver to solve a linear model.
- pi
Type: Microsoft.SolverFoundation.Solvers.ISimplexPivotInformation
Pivoting information.
Return Value
Type: System.Boolean
true if the solver will continue computing the pivot; otherwise, false.
Examples
The following code example demonstrates how to override the NotifyEndPivot method.
public override bool NotifyEndPivot(int threadIndex, ILinearSimplexStatistics stat, ISimplexPivotInformation spi) { Console.WriteLine("Ending pivot."); return true;}
.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.