ILinearSolver Interface

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

Defines a solver for a linear programming problem.

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

Syntax

'Declaration
Public Interface ILinearSolver _
    Inherits ISolver, ILinearModel
public interface ILinearSolver : ISolver, 
    ILinearModel
public interface class ILinearSolver : ISolver, 
    ILinearModel
type ILinearSolver =  
    interface
        interface ISolver
        interface ILinearModel
    end
public interface ILinearSolver extends ISolver, ILinearModel

The ILinearSolver type exposes the following members.

Properties

  Name Description
Public property CoefficientCount Gets the number of nonzero coefficients in a linear model. (Inherited from ILinearModel.)
Public property GoalCount Gets the number of goals in a linear model. (Inherited from ILinearModel.)
Public property Goals Gets the goal collection of a linear model. (Inherited from ILinearModel.)
Public property Indices Gets the variable index collection of a linear model, inclusive of rows. (Inherited from ILinearModel.)
Public property IntegerIndexCount Gets the number of integer variables in a linear model. (Inherited from ILinearModel.)
Public property IsQuadraticModel Gets a value that indicates whether a model has a quadratic term on the objective function. (Inherited from ILinearModel.)
Public property IsSpecialOrderedSet Gets a value that indicates whether a linear model is a special ordered set. (Inherited from ILinearModel.)
Public property KeyComparer Gets the key that is used to compare rows or variables. (Inherited from ILinearModel.)
Public property KeyCount Gets the number of keys in a linear model, inclusive of rows and variables. (Inherited from ILinearModel.)
Public property Keys Gets the variable and row key collection of a linear model. (Inherited from ILinearModel.)
Public property Result Gets the result of a solve attempt.
Public property RowCount Gets the number of rows in a linear model. (Inherited from ILinearModel.)
Public property RowIndices Gets the collection of row indexes for a linear model. (Inherited from ILinearModel.)
Public property RowKeys Gets the collection of row keys for a linear model. (Inherited from ILinearModel.)
Public property VariableCount Gets the number of variables in a linear model. (Inherited from ILinearModel.)
Public property VariableIndices Gets the collection of variable indexes for a linear model. (Inherited from ILinearModel.)
Public property VariableKeys Gets the collection of variable keys for linear model. (Inherited from ILinearModel.)

Top

Methods

  Name Description
Public method AddGoal Creates an ILinearGoal object and adds it to the goal list in a model. (Inherited from ILinearModel.)
Public method AddRow(Object, Int32%) Attempts to add a row to the models and returns a value that indicates whether a row is added to a model. (Inherited from ILinearModel.)
Public method AddRow(Object, SpecialOrderedSetType, Int32%) Attempts to add a row to the model and returns a value that indicates whether a reference row for a special ordered set is added to a model. (Inherited from ILinearModel.)
Public method AddVariable Returns a value that indicates whether a user variable is added to a model. (Inherited from ILinearModel.)
Public method ClearGoals Clears all the goals in a model. (Inherited from ILinearModel.)
Public method GetBasic Returns a value that indicates whether a variable is a basic variable. (Inherited from ILinearModel.)
Public method GetBounds Returns the bounds for a variable. (Inherited from ILinearModel.)
Public method GetCoefficient(Int32, Int32) Returns the coefficient of the A matrix in a linear model. (Inherited from ILinearModel.)
Public method GetCoefficient(Int32, Int32, Int32) Returns the coefficient of the Q matrix on the objective row. (Inherited from ILinearModel.)
Public method GetGoalFromIndex Returns the goal entry if the row identifier is associated with a goal. (Inherited from ILinearModel.)
Public method GetIgnoreBounds Returns a value that indicates whether the bounds of a variable are ignored. (Inherited from ILinearModel.)
Public method GetIndexFromKey Returns an index that corresponds to the specified key. (Inherited from ILinearModel.)
Public method GetIntegrality Returns a value that indicates whether a variable is an integer variable. (Inherited from ILinearModel.)
Public method GetKeyFromIndex Returns the key that is associated with a variable index. (Inherited from ILinearModel.)
Public method GetReport Returns the sensitivity report for a linear programming solver.
Public method GetRowEntries Returns the collection of nonzero variable entries. (Inherited from ILinearModel.)
Public method GetRowEntryCount Returns the number of nonzero coefficients for the specified row index. (Inherited from ILinearModel.)
Public method GetRowQuadraticEntries Returns a collection of nonzero variable entries on a quadratic row. (Inherited from ILinearModel.)
Public method GetSpecialOrderedSetTypeRowIndexes Returns a list of rows for a special ordered set. (Inherited from ILinearModel.)
Public method GetValue Returns the value that is associated with a variable index. (Inherited from ILinearModel.)
Public method GetValueState Gets the value state for the variable. (Inherited from ILinearModel.)
Public method GetVariableEntries Gets a collection of non-zero column entries for the specified column variable index. (Inherited from ILinearModel.)
Public method GetVariableEntryCount Returns the number of nonzero coefficients for the specified column variable index. (Inherited from ILinearModel.)
Public method IsGoal(Int32) Returns a value that indicates whether a row identifier is associated with a goal row. (Inherited from ILinearModel.)
Public method IsGoal(Int32, ILinearGoal%) Returns a value that indicates whether a row identifier is associated with a goal row. (Inherited from ILinearModel.)
Public method IsQuadraticVariable Returns a value that indicates whether a variable is in any quadratic row. (Inherited from ILinearModel.)
Public method IsRow Returns a value that indicates whether a variable index is associated with a row. (Inherited from ILinearModel.)
Public method RemoveGoal Attempts to remove a goal row and returns a value that indicates whether the row is removed successfully. (Inherited from ILinearModel.)
Public method SetBasic Sets the basic status for a variable. (Inherited from ILinearModel.)
Public method SetBounds Sets the bounds for a variable. (Inherited from ILinearModel.)
Public method SetCoefficient(Int32, Int32, Rational) Sets the coefficient of the A matrix in a linear model. (Inherited from ILinearModel.)
Public method SetCoefficient(Int32, Rational, Int32, Int32) Sets the coefficient of the Q matrix on the objective row. (Inherited from ILinearModel.)
Public method SetIgnoreBounds Sets a value that specifies whether to ignore or respect the bounds of a variable during a solve process. (Inherited from ILinearModel.)
Public method SetIntegrality Sets a value that indicates whether a variable is an integer. (Inherited from ILinearModel.)
Public method SetLowerBound Sets the lower bound of a variable. (Inherited from ILinearModel.)
Public method SetUpperBound Sets the upper bound of a variable. (Inherited from ILinearModel.)
Public method SetValue Sets the value of a linear model. (Inherited from ILinearModel.)
Public method Shutdown Shuts down a solver instance. (Inherited from ISolver.)
Public method Solve Solves a model by using the parameter instance.
Public method TryGetIndexFromKey Returns a value that indicates whether a variable index exists for the specified key. (Inherited from ILinearModel.)

Top

See Also

Reference

Microsoft.SolverFoundation.Services Namespace