Optimization: principles and algorithms, by Michel Bierlaire
Functions

\[\min f(x)=2(x_1^2+x_2^2-1)-x_1\]

subject to

\[x_1^2 + x_2^2 = 1 \]

More...

Go to the source code of this file.

Functions

function ex1905 (in x, in index)
 

Detailed Description

\[\min f(x)=2(x_1^2+x_2^2-1)-x_1\]

subject to

\[x_1^2 + x_2^2 = 1 \]

Author
Michel Bierlaire
Date
Mon Mar 23 15:42:51 2015

Definition in file ex1905.m.

Function Documentation

◆ ex1905()

function ex1905 ( 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