diff options
-rw-r--r-- | fitness.m | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ function [Energy, Waist, Penalty] = fitness( q_0, q_final, x_final, optics_posit Energy = 0;
Penalty_waist_mismatch = sum(abs((Waist_trial_forward-Waist_trial_backward)./min(Waist_trial_forward, Waist_trial_backward)))/Np;
- Penalty_waist_mismatch
+
Energy = 1e-2*Penalty_waist_mismatch;
% penalty calculation
|