Solve Optimization problem with Nonlinear Objective and Constraints
Solve Optimization problem with Nonlinear Objective and Constraints
Sequential Quatratic Programming (SQP) method is implemented to find solution for general nonlinear optimization problem (with nonlinear objective and constraint functions). The SQP method can be find in detail in Chapter 18 of Jorge Nocedal and Stephen J. Wright's book. Linear or nonlinear equality and inequality constraints are allowed. It accepts the input parameters as a constrained matrix. The function solnl is to solve generalized nonlinear optimization problem: [REMOVE_ME]minf(x)[REMOVEME2]
objfun: Nonlinear objective function that is to be optimized.
confun: Nonlinear constraint function. Return a ceq vector and a c vector as nonlinear equality constraints and an inequality constraints.
A: A in the linear inequality constraints.
B: B in the linear inequality constraints.
Aeq: Aeq in the linear equality constraints.
Beq: Beq in the linear equality constraints.
lb: Lower bounds of parameters.
ub: Upper bounds of parameters.
tolX: The tolerance in X.
tolFun: The tolerance in the objective function.
tolCon: The tolenrance in the constraint function.
maxnFun: Maximum updates in the objective function.
maxIter: Maximum iteration.
Returns
Return a list with the following components: - par: The optimum solution.
fn: The value of the objective function at the optimal point.
counts: Number of function evaluations, and number of gradient evaluations.
lambda: Lagrangian multiplier.
grad: The gradient of the objective function at the optimal point.
hessian: Hessian of the objective function at the optimal point.
Description
Sequential Quatratic Programming (SQP) method is implemented to find solution for general nonlinear optimization problem (with nonlinear objective and constraint functions). The SQP method can be find in detail in Chapter 18 of Jorge Nocedal and Stephen J. Wright's book. Linear or nonlinear equality and inequality constraints are allowed. It accepts the input parameters as a constrained matrix. The function solnl is to solve generalized nonlinear optimization problem: