LinearModel.SetCoefficient Method (Int32, Int32, Rational)

Solver Foundation 3.0

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

Sets the coefficient of the A matrix in a linear model.

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

public virtual void SetCoefficient(
	int vidRow,
	int vidVar,
	Rational num
)

Parameters

vidRow
Type: System.Int32
A row identifier.
vidVar
Type: System.Int32
A column variable identifier.
num
Type: Microsoft.SolverFoundation.Common.Rational
A value.

Implements

ILinearModel.SetCoefficient(Int32, Int32, Rational)

If num is zero, the entry is removed.

Show: