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
-
x | Vector of optimization variables [amplitudes, phases]. |
dish | ParabolicDish object representing the reflector geometry. |
dish_analyzer | DishAnalyzer object for evaluating radiation characteristics. |
dipoles | Cell array of SimpleDipole objects, used to superimpose additional fields. |
Etheta | Baseline θ-component of the electric field (1D array). |
Ephi | Baseline Ï-component of the electric field (1D array). |
phi | Azimuthal angle (scalar) for fixed Ï slice analysis [rad]. |
theta_range | Vector of θ angles at which far-field is evaluated [rad]. |
- Return values
-
cost | Composite cost value to be minimized by the GA. |