SimplexSolverParams.NotifyStartPivot 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 before the pivot.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Overridable Function NotifyStartPivot ( _
    threadIndex As Integer, _
    stat As ILinearSimplexStatistics, _
    pi As ISimplexPivotInformation _
) As Boolean
public virtual bool NotifyStartPivot(
    int threadIndex,
    ILinearSimplexStatistics stat,
    ISimplexPivotInformation pi
)
public:
virtual bool NotifyStartPivot(
    int threadIndex, 
    ILinearSimplexStatistics^ stat, 
    ISimplexPivotInformation^ pi
)
abstract NotifyStartPivot : 
        threadIndex:int * 
        stat:ILinearSimplexStatistics * 
        pi:ISimplexPivotInformation -> bool 
override NotifyStartPivot : 
        threadIndex:int * 
        stat:ILinearSimplexStatistics * 
        pi:ISimplexPivotInformation -> bool 
public function NotifyStartPivot(
    threadIndex : int, 
    stat : ILinearSimplexStatistics, 
    pi : ISimplexPivotInformation
) : boolean

Parameters

  • threadIndex
    Type: System.Int32
    The thread identifier for the simplex solver.

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 NotifyStartPivot method.

  public override bool NotifyStartPivot(int threadIndex,                                        ILinearSimplexStatistics stat,                                        ISimplexPivotInformation spi) {    Console.WriteLine("Starting pivot.");    Console.WriteLine("determinant {0} approximate cost         T:Microsoft.SolverFoundation.Solvers.SimplexSolverParams scale {2}",        spi.Determinant, spi.ApproxCost, spi.Scale);    return true;  }

.NET Framework Security

See Also

Reference

SimplexSolverParams Class

Microsoft.SolverFoundation.Solvers Namespace