aboutsummaryrefslogtreecommitdiff
path: root/fitness.m
diff options
context:
space:
mode:
Diffstat (limited to 'fitness.m')
-rw-r--r--fitness.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitness.m b/fitness.m
index 3dac363..403d8d7 100644
--- a/fitness.m
+++ b/fitness.m
@@ -44,7 +44,7 @@ function [Energy, Waist, Penalty] = fitness( q_0, q_final, x_final, optics_posit
[w0, r0] = q2wr(q_0, lambda);
[ w, w_pos ] = self_gbeam_propagation( w0, optics_positions, optics_focal_length, x0, lambda );
- coef = 1;
+ coef = 10;
d_object = abs(optics_positions(end) - w_pos(end - 1));
d_lens = optics_positions(end) - optics_positions(end - 1);
penalty_not_collimated_beam = coef * exp(-(d_object/d_lens)^2);