LinearModel Methods

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

The LinearModel type exposes the following members.

Methods

  Name Description
Public method AddGoal Creates an ILinearGoal object and adds it to the goal list in a model.
Public method AddRow(Object, Int32%) Adds a row to a linear model. (Overrides RowVariableModel.AddRow(Object, Int32%).)
Public method AddRow(Object, SpecialOrderedSetType, Int32%) Adds a reference row for a special ordered set to a linear model.
Public method AddVariable Adds a user variable to a model. (Inherited from RowVariableModel.)
Public method ClearGoals Clears all the goals in a linear 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 GetBasic Returns a value that indicates whether a variable is a basic variable.
Public method GetBounds Returns the bounds for a variable. (Inherited from RowVariableModel.)
Public method GetCoefficient(Int32, Int32) Returns the coefficient of the A matrix in a linear model.
Public method GetCoefficient(Int32, Int32, Int32) Returns the coefficient of the Q matrix on the objective row.
Public method GetGoalFromIndex Returns a goal entry if the row index is associated with a goal.
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. (Inherited from RowVariableModel.)
Public method GetIndexFromKey Returns the index that is associated with a specified key. (Inherited from RowVariableModel.)
Public method GetIntegrality Returns a value that indicates whether a variable is an integer variable. (Inherited from RowVariableModel.)
Public method GetKeyFromIndex Returns the key that is associated with the specified variable index. (Inherited from RowVariableModel.)
Public method GetProperty Returns the value of a property that is at the specified index. (Inherited from RowVariableModel.)
Public method GetRowEntries Returns the collection of non-zero variable entries.
Public method GetRowEntryCount Returns the number of non-zero coefficients for the given row index.
Public method GetRowQuadraticEntries Returns a collection of non-zero variable entries on a quadratic row.
Public method GetSpecialOrderedSetTypeRowIndexes Returns a list of rows for a special ordered set.
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. (Inherited from RowVariableModel.)
Public method GetValueState Returns the value state for a variable.
Public method GetVariableEntries Returns a collection of non-zero column entries.
Public method GetVariableEntryCount Returns the number of non-zero coefficients for a given column variable index.
Protected method InitModel Allocates data structures for a new model.
Public method IsGoal(Int32) Returns a value that indicates whether a row identifier is a goal row.
Public method IsGoal(Int32, ILinearGoal%) Returns a value that indicates whether a row identifier is a goal row.
Public method IsQuadraticVariable Returns a value that indicates whether a variable is in any quadratic row.
Public method IsRow Returns a value that indicates whether a variable index corresponds to a row. (Inherited from RowVariableModel.)
Public method LoadLinearModel Loads the information from one linear model into another model.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Preallocate Allocates data structures for a new linear model.
Public method RemoveGoal Removes a goal row.
Public method SetBasic Sets the basic status for a variable.
Public method SetBounds Sets the bounds for a row. (Inherited from RowVariableModel.)
Public method SetCoefficient(Int32, Int32, Rational) Sets the coefficient of the A matrix in a linear model.
Public method SetCoefficient(Int32, Rational, Int32, Int32) Sets the coefficient of the Q matrix on the objective row.
Public method SetIgnoreBounds Specifies whether the bounds of a variable should be respected or ignored during a solve attempt. (Inherited from RowVariableModel.)
Public method SetIntegrality Specifies whether a variable is an integer variable. (Inherited from RowVariableModel.)
Public method SetLowerBound Sets the lower bound of a variable. (Inherited from RowVariableModel.)
Public method SetProperty Sets a property that is at the specified variable index. (Inherited from RowVariableModel.)
Public method SetUpperBound Sets the upper bound of a variable. (Inherited from RowVariableModel.)
Public method SetValue Sets the value for the specified variable index. (Inherited from RowVariableModel.)
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. (Inherited from RowVariableModel.)

Top

See Also

Reference

LinearModel Class

Microsoft.SolverFoundation.Services Namespace