- 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.Mathematics
- Extreme.Mathematics.Algorithms
- Extreme.Mathematics.Calculus
- Extreme.Mathematics.Calculus.OrdinaryDifferentialEquations
- Extreme.Mathematics.Curves
- Extreme.Mathematics.Curves.Nonlinear
- Extreme.Mathematics.Distributed
- Extreme.Mathematics.Distributed.Cuda
- Extreme.Mathematics.EquationSolvers
- Extreme.Mathematics.FSharp
- Extreme.Mathematics.Generic
- Extreme.Mathematics.Generic.LinearAlgebra
- Extreme.Mathematics.Generic.LinearAlgebra.Implementation
- Extreme.Mathematics.Generic.LinearAlgebra.Providers
- Extreme.Mathematics.Generic.SignalProcessing
- Extreme.Mathematics.Implementation
- Extreme.Mathematics.LinearAlgebra
- Extreme.Mathematics.LinearAlgebra.Complex
- Extreme.Mathematics.LinearAlgebra.Complex.Decompositions
- Extreme.Mathematics.LinearAlgebra.Implementation
- Extreme.Mathematics.LinearAlgebra.IO
- Extreme.Mathematics.LinearAlgebra.IterativeSolvers
- Extreme.Mathematics.LinearAlgebra.IterativeSolvers.Preconditioners
- Extreme.Mathematics.LinearAlgebra.Providers
- Extreme.Mathematics.LinearAlgebra.Sparse
- Extreme.Mathematics.Optimization
- Extreme.Mathematics.Optimization.Genetic
- Extreme.Mathematics.Optimization.LineSearches
- Extreme.Mathematics.Random
- Extreme.Mathematics.SignalProcessing
- Extreme.Numerics.FSharp
- Extreme.Statistics
- Extreme.Statistics.Distributions
- Extreme.Statistics.IO
- Extreme.Statistics.Linq
- Extreme.Statistics.Multivariate
- Extreme.Statistics.Random
- Extreme.Statistics.Tests
- Extreme.Statistics.TimeSeriesAnalysis

- Extreme.Mathematics.Optimization
- 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
- LinearProgramVariable Class
- MpsReader Class
- MultidimensionalOptimizer Class
- NelderMeadOptimizer Class
- NonlinearConstraint Class
- NonlinearProgram Class
- OneDimensionalOptimizer Class
- OptimizationGoal Enumeration
- OptimizationModel Class
- OptimizationModelEntity Class
- OptimizationModelStatus Enumeration
- OptimizationSolutionReport Class
- PowellOptimizer Class
- QuadraticProgram Class
- QuasiNewtonMethod Enumeration
- QuasiNewtonOptimizer Class
- TrustRegionReflectiveOptimizer Class

- QuadraticProgram Class

QuadraticProgram Class | Extreme Optimization Numerical Libraries for .NET Professional |

Extreme.Mathematics.Optimization

Extreme.Mathematics.Optimization

Extreme.Mathematics.Optimization

**Namespace:**Extreme.Mathematics.Optimization

**Assembly:**Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16328.0)

The QuadraticProgram type exposes the following members.

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

AssumeConvex |
Gets or sets whether to assume the quadratic program is convex.
| |

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.) | |

Flags | (Inherited from LinearProgram.) | |

InitialGuess |
Gets or sets an initial guess for the solution of the quadratic program.
| |

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.
(Inherited from LinearProgram.) | |

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

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

A quadratic program has variables and linear 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 quadratic program. You can supply the quadratic program in matrix form.
You can build the quadratic program from scratch using the AddVariable(String, Double)
and AddLinearConstraint(IList

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

The Solve

The Solve

Once a solution has been computed, the OptimalValue property returns the optimal value.

#### Numerical Libraries

Supported in: 6.0, 5.x, 4.x#### Reference

Copyright © 2004-20116,
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.