Optimization: principles and algorithms, by Michel Bierlaire
Functions

\[\min f(x)=x_1+x_2\]

subject to

\[x_1^2+(x_2-1)^2-1=0 \]

More...

Go to the source code of this file.

Functions

function ex2002 (in x, in index)
 

Detailed Description

\[\min f(x)=x_1+x_2\]

subject to

\[x_1^2+(x_2-1)^2-1=0 \]

Author
Michel Bierlaire
Date
Thu Mar 26 13:43:46 2015

Definition in file ex2002.m.

Function Documentation

◆ ex2002()

function ex2002 ( in  x,
in  index 
)
Parameters
xvalue of the variables
indexIf 0, the objective function is evaluated. If not, the constraint number index is evaluated.
Returns
f value of the function
g value of the gradient
H value of the hessian
Copyright 2015-2018 Michel Bierlaire