PO_matlab
ga_cost_fun1.m File Reference

Cost function for GA-based dipole optimization on a dish antenna. More...

Functions

function ga_cost_fun1 (in x, in dish, in dish_analyzer, in dipoles, in Etheta, in Ephi, in phi, in theta_range)

Detailed Description

Cost function for GA-based dipole optimization on a dish antenna.

This function computes a composite cost based on sidelobe level (SLL), beamwidth, and peak direction deviation. It is designed to be minimized by a genetic algorithm.

Parameters
xVector of optimization variables [amplitudes, phases].
dishParabolicDish object representing the reflector geometry.
dish_analyzerDishAnalyzer object for evaluating radiation characteristics.
dipolesCell array of SimpleDipole objects, used to superimpose additional fields.
EthetaBaseline θ-component of the electric field (1D array).
EphiBaseline φ-component of the electric field (1D array).
phiAzimuthal angle (scalar) for fixed φ slice analysis [rad].
theta_rangeVector of θ angles at which far-field is evaluated [rad].
Return values
costComposite cost value to be minimized by the GA.

Function Documentation

◆ ga_cost_fun1()

function ga_cost_fun1 ( in x,
in dish,
in dish_analyzer,
in dipoles,
in Etheta,
in Ephi,
in phi,
in theta_range )