%%% myGSexample.m  (2019spring)
%{
Example:
       Run global search on the optimization problem 
          minimize peaks(x, y); subject to 
                    (x+3)^2 + (y+3)^2 <= 36,
                    -3 <= x <= 3 and  
                    -3 <= y <= 3.
%}
% Constraints:
type mycon
%% Set up problem:
problem = createOptimProblem('fmincon','objective', ...
          @(x) peaks(x(1), x(2)), 'x0', [1 2], 'lb', [-3 -3], ...
          'ub', [3 3], 'nonlcon', @mycon)
 %%
 gs = GlobalSearch
 
      
