Share via


RowVariableModel Class

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

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

Inheritance Hierarchy

System.Object
  Microsoft.SolverFoundation.Services.RowVariableModel
    Microsoft.SolverFoundation.Services.LinearModel
    Microsoft.SolverFoundation.Services.RowVariableGoalModel

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

Syntax

'Declaration
Public MustInherit Class RowVariableModel _
    Implements IRowVariableModel
public abstract class RowVariableModel : IRowVariableModel
public ref class RowVariableModel abstract : IRowVariableModel
[<AbstractClass>]
type RowVariableModel =  
    class
        interface IRowVariableModel
    end
public abstract class RowVariableModel implements IRowVariableModel

The RowVariableModel type exposes the following members.

Constructors

  Name Description
Protected method RowVariableModel Initializes a new instance of the RowVariableModel class.

Top

Properties

  Name Description
Public property Indices Gets the collection of row and variable indexes for a model.
Public property IntegerIndexCount Gets the number of integer variables in a model.
Public property IsMipModel Gets a value that indicates whether a model is a mixed integer programming (MIP) model.
Public property KeyComparer Gets the object that is used to compare keys for rows or variables.
Public property KeyCount Gets the number of keys that are in a model.
Public property Keys Gets the variable key 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 Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBounds Returns the bounds for a variable.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
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 specified 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 the specified variable index.
Public method GetProperty Returns the value of a property that is at the specified index.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue Returns the value that is associated with the specified variable index.
Public method IsRow Returns a value that indicates whether a variable index corresponds to a row.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetBounds Sets the bounds for a row.
Public method SetIgnoreBounds Specifies whether the bounds of a variable should be respected or ignored during a solve attempt.
Public method SetIntegrality Specifies whether a variable is an integer variable.
Public method SetLowerBound Sets the lower bound of a variable.
Public method SetProperty Sets a property that is at the specified variable index.
Public method SetUpperBound Sets the upper bound of a variable.
Public method SetValue Sets the value for the specified variable index.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetIndexFromKey Attempts to return the variable index that is associated with the specified key.

Top

Fields

  Name Description
Protected field m_cvidInt Represents the number of integer variables.
Protected field m_mpkeyvid Represents the mapping from key to variable index.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SolverFoundation.Services Namespace