LinearModel.Preallocate Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Allocates data structures for a new linear model.

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

Syntax

'Declaration
Public Overridable Sub Preallocate ( _
    cols As Integer, _
    rows As Integer, _
    nonzeroes As Integer _
)
public virtual void Preallocate(
    int cols,
    int rows,
    int nonzeroes
)
public:
virtual void Preallocate(
    int cols, 
    int rows, 
    int nonzeroes
)
abstract Preallocate : 
        cols:int * 
        rows:int * 
        nonzeroes:int -> unit 
override Preallocate : 
        cols:int * 
        rows:int * 
        nonzeroes:int -> unit 
public function Preallocate(
    cols : int, 
    rows : int, 
    nonzeroes : int
)

Parameters

  • nonzeroes
    Type: System.Int32
    The number of non-zero coefficients in the matrix.

.NET Framework Security

See Also

Reference

LinearModel Class

Microsoft.SolverFoundation.Services Namespace