aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2013-03-20 18:41:08 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2013-03-20 18:41:08 -0400
commit82b79070349de134a1c847435bf0aa41853bb7c0 (patch)
treecb55beedb420d1e0b16d0ebb3a50024f2e069b88
parent48bd430e85c404e75ad86ed126d184d39de1d86a (diff)
downloadmode_match-82b79070349de134a1c847435bf0aa41853bb7c0.tar.gz
mode_match-82b79070349de134a1c847435bf0aa41853bb7c0.zip
increased collimated region penalty
-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);