- Extreme Optimization
- Documentation
- Reference
- Extreme
- Extreme.Collections
- Extreme.Data
- Extreme.Data.Json
- Extreme.Data.Matlab
- Extreme.Data.R
- Extreme.Data.Stata
- Extreme.Data.Text
- Extreme.DataAnalysis
- Extreme.DataAnalysis.Linq
- Extreme.DataAnalysis.Models
- Extreme.Mathematics
- Extreme.Mathematics.Algorithms
- Extreme.Mathematics.Calculus
- Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations
- Extreme.Mathematics.Curves
- Extreme.Mathematics.Curves.Nonlinear
- Extreme.Mathematics.Distributed
- Extreme.Mathematics.EquationSolvers
- Extreme.Mathematics.Generic
- Extreme.Mathematics.LinearAlgebra
- Extreme.Mathematics.LinearAlgebra.Implementation
- Extreme.Mathematics.LinearAlgebra.IterativeSolvers
- Extreme.Mathematics.LinearAlgebra.IterativeSolvers.Preconditioners
- Extreme.Mathematics.Optimization
- Extreme.Mathematics.Optimization.LineSearches
- Extreme.Mathematics.Random
- Extreme.Mathematics.SignalProcessing
- Extreme.Providers
- Extreme.Providers.InteropServices
- Extreme.Statistics
- Extreme.Statistics.Distributions
- Extreme.Statistics.Multivariate
- Extreme.Statistics.Tests
- Extreme.Statistics.TimeSeriesAnalysis

- Extreme.Mathematics.Optimization
- BoundedQuasiNewtonOptimizer Class
- BrentDerivativeOptimizer Class
- BrentOptimizer Class
- ConjugateGradientMethod Enumeration
- ConjugateGradientOptimizer Class
- Constraint Class
- ConstraintCollection Class
- ConstraintType Enumeration
- DecisionVariable Class
- DecisionVariableCollection Class
- DirectionalOptimizer Class
- ExtremumType Enumeration
- GoldenSectionOptimizer Class
- LeastSquaresOptimizer Class
- LevenbergMarquardtOptimizer Class
- LimitedMemoryBfgsOptimizer Class
- LinearConstraint Class
- LinearProgram Class
- LinearProgramConstraint Class
- LinearProgramSolver Class
- LinearProgramVariable Class
- MpsReader Class
- MultidimensionalOptimizer Class
- NelderMeadOptimizer Class
- NonlinearConstraint Class
- NonlinearProgram Class
- OneDimensionalOptimizer Class
- OptimizationModel Class
- OptimizationModelEntity Class
- OptimizationModelSolver(T) Class
- OptimizationModelStatus Enumeration
- OptimizationSolutionReport Class
- PowellOptimizer Class
- QuadraticProgram Class
- QuasiNewtonMethod Enumeration
- QuasiNewtonOptimizer Class
- TrustRegionReflectiveOptimizer Class

- LinearProgram Class

## LinearProgram Class | Extreme Optimization Numerical Libraries for .NET Professional |

Extreme.Mathematics.Optimization

Extreme.Mathematics.Optimization

Extreme.Mathematics.Optimization

**Namespace:**Extreme.Mathematics.Optimization

**Assembly:**Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1

The LinearProgram type exposes the following members.

Name | Description | |
---|---|---|

Constraints |
Gets the collection of constraints for this OptimizationModel.
(Inherited from OptimizationModel.) | |

ExtremumType |
Gets or sets whether a minimum or a maximum should be computed.
(Inherited from OptimizationModel.) | |

Name |
Gets or sets the name of the model.
(Inherited from OptimizationModel.) | |

OptimalValue |
Gets the extreme value of the cost function.
(Inherited from OptimizationModel.) | |

SolutionReport |
Gets an object that contains information about the solution of the model.
(Inherited from OptimizationModel.) | |

Status |
Gets the status of the optimization model's solution.
(Inherited from OptimizationModel.) | |

Tolerance |
Gets or sets the tolerance used to determine if a solution has been found.
| |

Variables |
Gets the collection of variables for this OptimizationModel.
(Inherited from OptimizationModel.) |

Use the LinearProgram class to represent a linear optimization problem with linear constraints.

A linear program has variables and constraints. They are made available through the Variables and Constraints properties. These collections are indexed by name and by position.

There are three ways to define a linear program. You can supply the linear program in matrix form. You can build the linear program from scratch using the AddVariable(String, Double) and AddLinearConstraint(String, Double, Double) methods. The ExtremumType property determines whether a maximum or a minimum is requested.

You can also load a linear program from an MPS file using the MpsReader class.

The Solve

The Solve

Once a solution has been computed, the GetDualSolution

#### Reference

Copyright © 2004-2021,
Extreme Optimization. All rights reserved.

*Extreme Optimization,* *Complexity made simple*, *M#*, and *M
Sharp* are trademarks of ExoAnalytics Inc.

*Microsoft*, *Visual C#, Visual Basic, Visual Studio*, *Visual
Studio.NET*, and the *Optimized for Visual Studio* logo

are
registered trademarks of Microsoft Corporation.