diff options
Diffstat (limited to 'fitness.m')
-rw-r--r-- | fitness.m | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,9 +1,10 @@ -function Energy = fitness( q_0, q_final, x_final, optics_positions, optics_focal_length )
+function [Energy, Waist] = fitness( q_0, q_final, x_final, optics_positions, optics_focal_length, lambda )
%FITNESS Summary of this function goes here
% Detailed explanation goes here
x0 = 0;
q_f_trial = gbeam_propagation(x_final,q_0,x0,optics_placer(optics_positions, optics_focal_length));
-
+ [Waist, Radius] = q2wr(q_f_trial, lambda);
+
Energy = abs(q_final-q_f_trial);
% penalty calculation
|