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

- NonlinearProgram Class

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

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

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

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

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

ObjectiveAndGradient |
Gets or sets the gradient of the objective function of the nonlinear program.
| |

ObjectiveFunction |
Gets or sets the objective function of the nonlinear program.
| |

ObjectiveGradient |
Gets or sets the gradient of the objective function of the nonlinear program.
| |

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

Solver |
Gets the object used to solve the nonlinear program.
| |

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

SymbolicObjectiveFunction |
Gets or sets the expression that evaluates the objective function.
| |

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

Use the NonlinearProgram class to represent an optimization problem with a nonlinear objective function that may have both linear and nonlinear constraints.

A nonlinear 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 two ways to define a nonlinear program. You can supply the linear constraints of the nonlinear program in matrix form.
You can also build the nonlinear program entirely from scratch using the AddVariable(String, Double)
and AddLinearConstraint(IList

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.