- 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

- NonlinearProgram Class

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

Extreme.Mathematics.Optimization

Extreme.Mathematics.Optimization

**Namespace:**Extreme.Mathematics.Optimization

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

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(String, Double, Double) methods. The ExtremumType property determines whether a maximum or a minimum is requested.

The Solve

The Solve

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

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