clear variables
clc
close all

%% Start with the default options
options = optimoptions('fmincon');
%% Modify options setting
options = optimoptions(options,'Display', 'final-detailed');
options = optimoptions(options,'Algorithm', 'sqp');   %
x0 = [200 500]; % Start point
[x,fval,exitflag,output] = ...
fmincon(@(x) x(1)*x(2),x0,[-2 1],[0],[],[],[0 0],[],@beam_cons,options)
