IRowVariableModel Interface

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

Defines a basic optimization model that consists of decision variables and rows.

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

Syntax

'Declaration
Public Interface IRowVariableModel
public interface IRowVariableModel
public interface class IRowVariableModel
type IRowVariableModel =  interface end
public interface IRowVariableModel

The IRowVariableModel type exposes the following members.

Properties

  Name Description
Public property Indices Gets the collection of variable indexes, inclusive of rows.
Public property IntegerIndexCount Gets the number of integer variables in a model.
Public property KeyComparer Gets an object that is used to compare rows or variables.
Public property KeyCount Gets the number of keys in a model, inclusive of rows and variables.
Public property Keys Gets the variable and row key collection.
Public property RowCount Gets the number of rows in a model.
Public property RowIndices Gets the collection of row indexes in a model.
Public property RowKeys Gets the collection of row keys.
Public property VariableCount Gets the number of variables in a model.
Public property VariableIndices Gets the collection of variable indexes.
Public property VariableKeys Gets the collection of variable keys.

Top

Methods

  Name Description
Public method AddRow Adds a row to a model.
Public method AddVariable Adds a user variable to a model.
Public method GetBounds Returns the bounds for a variable.
Public method GetIgnoreBounds Returns a value that indicates whether the bounds of a variable are ignored.
Public method GetIndexFromKey Returns the index that is associated with a key.
Public method GetIntegrality Returns a value that indicates whether a variable is an integer variable.
Public method GetKeyFromIndex Returns the key that is associated with a variable index.
Public method GetValue Returns the value that is associated with a variable index.
Public method IsRow Returns a value that indicates whether a variable index is a row.
Public method SetBounds Sets the bounds for a variable.
Public method SetIgnoreBounds Specifies whether the bounds of a variable index should be respected or ignored during a solve process.
Public method SetIntegrality Specifies that a variable is an integer variable.
Public method SetLowerBound Sets the lower bound of a variable.
Public method SetUpperBound Sets the upper bound of a variable
Public method SetValue Sets the value for the specified variable index.
Public method TryGetIndexFromKey Attempts to return the variable index associated with a key.

Top

See Also

Reference

Microsoft.SolverFoundation.Services Namespace