Optimization: principles and algorithms, by Michel Bierlaire
ex0508.m
Go to the documentation of this file.
1 %> @file
2 %> \f$f(x_1,x_2)=\frac{1}{2} x_1^2 + x_1 \cos(x_2)\f$
3 %> @author <a href="http://people.epfl.ch/michel.bierlaire">Michel Bierlaire</a>
4 %> @date Fri Mar 20 16:03:42 2015
5 %> @ingroup Examples
6 %> @ingroup chap10
7 
8 %> Example 5.8 in \cite Bier15-book
9 function [f,g,H] = ex0508(x)
10  f = 0.5 * x(1) * x(1) + x(1) * cos(x(2)) ;
11  g = [ x(1) + cos(x(2)) ; -x(1) * sin(x(2)) ] ;
12  H = [ 1 , -sin(x(2)) ; -sin(x(2)),-x(1)*cos(x(2))] ;
13 endfunction
function ex0508(in x)
Example 5.8 in .
Copyright 2015-2018 Michel Bierlaire