Export (0) Print
Expand All

SimplexSolverParams.NotifyEndPivot Method

Solver Foundation 3.0

[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)

public virtual bool NotifyEndPivot(
	int threadIndex,
	ILinearSimplexStatistics stat,
	ISimplexPivotInformation pi
)

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.

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;}

Show:
© 2014 Microsoft