%% Minimize Area of Dipole Antenna to Optimize Gain Using Surrogate Optimization Method
% Minimize the occupied area of a dipole antenna such that gain of the antenna is greater than 4 dBi.
% Open Antenna Designer app and accept the default dipole antenna.
%
% Analyze the pattern of the antenna. Notice that the Max value for directivity in the plot is 2.17 dBi.
%
%
%% Optimize Dipole Antenna
% Click on Optimize to open the Optimizer canvas of the Antenna Designer app.
%
% From the OBJECTIVE FUNCTION drop down choose, Minimize Area. Enter the bounds for the length and the width of the antenna in the Design Variables tab. Click Apply.
%
% Enter the constraints in the Constraints tab. Click Apply.
%
% Change the Optimizer from SADEA to Surrogate Opt. The number iterations is always 200 and Parallel Computing is greyed out.
%
% Click Run.
% The optimization starts based on the objective function and the constraints.
%
% Click  Accept.
% Analyze the antenna again for the 3D pattern. See that the Max value of the directivity is now 4.53 dBi.
%
%
% Copyright 2019 The MathWorks, Inc.
%
%