Optimization: principles and algorithms, by Michel Bierlaire
ex1503mcKinnon.m
Go to the documentation of this file.
1 %> \file
2 %> \f$f(x)=\left\{ \begin{array}{ll} 360 x_1^2 + x_2 + x_2^2&\text{if } x_1 \leq 0 \\ 6x_1^2 + x_2 + x_2^2 & \text{if } x_1 \geq 0. \end{array}\right.\f$
3 %> @author Michel Bierlaire
4 %> @date Sat Mar 21 19:02:59 2015
5 %> @ingroup Examples
6 %> @ingroup chap15
7 
8 %> Example 15.3 in \cite Bier15-book
9 function f = ex1503mcKinnon(x)
10  if (x(1) <= 0)
11  f = 360.0 * x(1) * x(1) + x(2) + x(2) * x(2) ;
12  else
13  f = 6 * x(1) * x(1) + x(2) + x(2) * x(2) ;
14  endif
15  return
16 endfunction
function ex1503mcKinnon(in x)
Example 15.3 in .
Copyright 2015-2018 Michel Bierlaire