Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

SimplexSolver Class

Solver Foundation 3.0

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

Defines a branch-and-bound search for optimizing mixed integer problems.

Namespace:  Microsoft.SolverFoundation.Solvers
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
public class SimplexSolver : LinearModel, 
	ILinearSolution, ISolverSolution, ILinearSimplexStatistics, ILogSource, ILinearSolver, 
	ISolver, ILinearModel, IReportProvider

The SimplexSolver type exposes the following members.

  NameDescription
Public methodSimplexSolver()Initializes a new instance of the SimplexSolver class.
Public methodSimplexSolver(IEqualityComparer<Object>)Initializes a new instance of the SimplexSolver class using the specified comparer.
Public methodSimplexSolver(ISolverEnvironment)Initializes a new instance of the SimplexSolver class.
Top
  NameDescription
Public propertyAlgorithmUsedGets the type of algorithm that is used by a solver.
Public propertyBranchCountGets the number of branches performed when the branch-and-bound algorithm is applied to a mixed integer linear problem.
Public propertyCoefficientCountGets the number of non-zero coefficients in a linear model. (Inherited from LinearModel.)
Public propertyCostingUsedDoubleGets the costing used for double arithmetic.
Public propertyCostingUsedExactGets the costing used for exact arithmetic.
Public propertyFactorCountGets the number of basis matrix LU factorizations performed during a solve attempt.
Public propertyFactorCountDoubleGets the number of basis matrix LU factorizations performed for double arithmetic.
Public propertyFactorCountExactGets the number of basis matrix LU factorizations performed for exact arithmetic.
Public propertyGapGets the difference between an integer solution and a relaxed solution.
Public propertyGoalCountGets the number of goals in a linear model. (Inherited from LinearModel.)
Public propertyGoalsGets the goal collection of a linear model. (Inherited from LinearModel.)
Public propertyIndicesGets the collection of row and variable indexes for a model. (Inherited from RowVariableModel.)
Public propertyInnerIndexCountGets the number of user and row variables used internally when a linear model is being solved.
Public propertyInnerIntegerIndexCountGets the number of integer user and row variables used internally when a linear model is being solved.
Public propertyInnerRowCountGets the number of rows used internally when a linear model is being solved.
Public propertyInnerSlackCountGets the number of row variables used internally when a linear model is being solved.
Public propertyIntegerIndexCountGets the number of integer variables in a model. (Inherited from RowVariableModel.)
Public propertyIsMipModelGets a value that indicates whether a model is a mixed integer programming (MIP) model. (Inherited from RowVariableModel.)
Public propertyIsQuadraticModelGets a value that indicates whether a model has a quadratic term on the objective function. (Inherited from LinearModel.)
Public propertyIsSpecialOrderedSetGets a value that indicates whether a linear model is a special ordered set. (Inherited from LinearModel.)
Public propertyKeyComparerGets the object that is used to compare keys for rows or variables. (Inherited from RowVariableModel.)
Public propertyKeyCountGets the number of keys that are in a model. (Inherited from RowVariableModel.)
Public propertyKeysGets the variable key and row key collection. (Inherited from RowVariableModel.)
Public propertyLpResultGets the result of solving a linear programming (LP) relaxation.
Public propertyMipBestBoundGets the best result from the mixed integer programming solver (MIP) solver.
Public propertyMipResultGets a result of solving a model after considering integrality conditions.
Public propertyPivotCountGets the number of simplex pivots performed during a solve attempt.
Public propertyPivotCountDegenerateGets the number of degenerated pivots performed during a solve attempt.
Public propertyPivotCountDoubleGets the number of pivots performed for double arithmetic.
Public propertyPivotCountDoublePhaseOneGets the number of phase one pivots performed for double arithmetic.
Public propertyPivotCountDoublePhaseTwoGets the number of phase two pivots performed for double arithmetic.
Public propertyPivotCountExactGets the number of pivots performed for exact arithmetic.
Public propertyPivotCountExactPhaseOneGets the number of phase one pivots performed for exact arithmetic.
Public propertyPivotCountExactPhaseTwoGets the number of phase two pivots performed for exact arithmetic.
Public propertyResultGets the result of a solve attempt.
Public propertyRowCountGets the number of rows in a model. (Inherited from RowVariableModel.)
Public propertyRowIndicesGets the collection of row indexes of a linear model. (Inherited from LinearModel.)
Public propertyRowKeysGets the collection of row keys. (Inherited from RowVariableModel.)
Public propertySolutionQualityGets the quality level of a solution.
Public propertySolvedGoalCountGets the number of goals being solved.
Public propertyUseDoubleGets a value that indicates whether a solve attempt is instructed to use double arithmetic.
Public propertyUseExactGets a value that indicates whether a solve attempt is instructed to use exact arithmetic.
Public propertyVariableCountGets the number of variables in a model. (Inherited from RowVariableModel.)
Public propertyVariableIndicesGets the collection of variable indexes. (Inherited from RowVariableModel.)
Public propertyVariableKeysGets the collection of variable keys. (Inherited from RowVariableModel.)
Top
  NameDescription
Public methodAddGoalCreates an ILinearGoal object and adds it to the goal list in a model. (Inherited from LinearModel.)
Public methodAddListenerAdds a tracing listener for solve attempts..
Public methodAddRow(Object, Int32)Adds a row to a linear model. (Inherited from LinearModel.)
Public methodAddRow(Object, SpecialOrderedSetType, Int32)Adds a reference row for a special ordered set to a linear model. (Inherited from LinearModel.)
Public methodAddVariableAdds a user variable to a model. (Inherited from RowVariableModel.)
Public methodClearGoalsClears all the goals in a linear model. (Inherited from LinearModel.)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetBasicReturns a value that indicates whether a variable is a basic variable. (Inherited from LinearModel.)
Public methodGetBoundsReturns the bounds for a variable. (Inherited from RowVariableModel.)
Public methodGetCoefficient(Int32, Int32)Returns the coefficient of the A matrix in a linear model. (Inherited from LinearModel.)
Public methodGetCoefficient(Int32, Int32, Int32)Returns the coefficient of the Q matrix on the objective row. (Inherited from LinearModel.)
Public methodGetGoalFromIndexReturns a goal entry if the row index is associated with a goal. (Inherited from LinearModel.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetIgnoreBoundsReturns a value that indicates whether the bounds of a variable are ignored. (Inherited from RowVariableModel.)
Public methodGetIndexFromKeyReturns the index that is associated with a specified key. (Inherited from RowVariableModel.)
Public methodGetIntegralityReturns a value that indicates whether a variable is an integer variable. (Inherited from RowVariableModel.)
Public methodGetKeyFromIndexReturns the key that is associated with the specified variable index. (Inherited from RowVariableModel.)
Public methodGetPropertyReturns the value of a specified property. (Overrides RowVariableModel.GetProperty(String, Int32).)
Public methodGetReport(LinearSolverReportType)Gets a sensitivity report associated with a solve attempt.
Public methodGetReport(SolverContext, Solution, SolutionMapping)Gets a report associated with a solve attempt.
Public methodGetRowEntriesReturns the collection of non-zero variable entries. (Inherited from LinearModel.)
Public methodGetRowEntryCountReturns the number of non-zero coefficients for the given row index. (Inherited from LinearModel.)
Public methodGetRowQuadraticEntriesReturns a collection of non-zero variable entries on a quadratic row. (Inherited from LinearModel.)
Public methodGetSolutionValueReturns the objective value of a goal.
Public methodGetSolvedGoalReturns the information that is associated with a solved goal.
Public methodGetSpecialOrderedSetTypeRowIndexesReturns a list of rows for a special ordered set. (Inherited from LinearModel.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueReturns the value that is associated with the specified variable index. (Inherited from RowVariableModel.)
Public methodGetValueStateReturns the value state for a variable. (Inherited from LinearModel.)
Public methodGetVariableEntriesReturns a collection of non-zero column entries. (Inherited from LinearModel.)
Public methodGetVariableEntryCountReturns the number of non-zero coefficients for a given column variable index. (Inherited from LinearModel.)
Protected methodInitModelAllocates data structures for a new model. (Overrides LinearModel.InitModel(IEqualityComparer<Object>, Int32, Int32, Int32).)
Public methodIsGoal(Int32)Returns a value that indicates whether a row identifier is a goal row. (Inherited from LinearModel.)
Public methodIsGoal(Int32, ILinearGoal)Returns a value that indicates whether a row identifier is a goal row. (Inherited from LinearModel.)
Public methodIsQuadraticVariableReturns a value that indicates whether a variable is in any quadratic row. (Inherited from LinearModel.)
Public methodIsRowReturns a value that indicates whether a variable index corresponds to a row. (Inherited from RowVariableModel.)
Public methodLoadLinearModelLoads the information from one linear model into another model. (Inherited from LinearModel.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPreallocateAllocates data structures for a new linear model. (Inherited from LinearModel.)
Public methodRemoveGoalRemoves a goal row. (Inherited from LinearModel.)
Public methodRemoveListenerRemoves a tracing listener.
Public methodSetBasicSets the basic status for a variable. (Inherited from LinearModel.)
Public methodSetBoundsSets the bounds for a row. (Inherited from RowVariableModel.)
Public methodSetCoefficient(Int32, Int32, Rational)Sets the coefficient of the A matrix in a linear model. (Inherited from LinearModel.)
Public methodSetCoefficient(Int32, Rational, Int32, Int32)Sets the coefficient of the Q matrix on the objective row. (Inherited from LinearModel.)
Public methodSetIgnoreBoundsSpecifies whether the bounds of a variable should be respected or ignored during a solve attempt. (Inherited from RowVariableModel.)
Public methodSetIntegralitySpecifies whether a variable is an integer variable. (Inherited from RowVariableModel.)
Public methodSetLowerBoundSets the lower bound of a variable. (Inherited from RowVariableModel.)
Public methodSetPropertySets the value of a property. (Overrides RowVariableModel.SetProperty(String, Int32, Object).)
Public methodSetUpperBoundSets the upper bound of a variable. (Inherited from RowVariableModel.)
Public methodSetValueSets the value for the specified variable index. (Inherited from RowVariableModel.)
Public methodShutdownStops a solver instance.
Public methodSolve(ISolverParameters)Runs a solver using the specified solver parameters.
Public methodSolve(SimplexSolverParams[])Runs a solver using one thread for each SimplexSolverParams object.
Public methodSolveRelaxationSolves a relaxation problem.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetIndexFromKeyAttempts to return the variable index that is associated with the specified key. (Inherited from RowVariableModel.)
Top
  NameDescription
Protected fieldm_cvidBasicRepresents the number of variables that are marked as basic. (Inherited from LinearModel.)
Protected fieldm_cvidIntRepresents the number of integer variables. (Inherited from RowVariableModel.)
Protected fieldm_mpkeyvidRepresents the mapping from key to variable index. (Inherited from RowVariableModel.)
Protected fieldm_qpRowVarThe goal variable that has the QP form. (Inherited from LinearModel.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.