summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2012-11-08 17:09:49 -0500
committerMatt Argao <mcargao@email.wm.edu>2012-11-08 17:09:49 -0500
commit9d74955612c8b1689cc481aa3f741f186460b221 (patch)
tree5000ac9f052caa5cd831d85d03f330468c5d8b2c
parenta89dc9b6d1499bd446a5d36dd2252c98548e6a45 (diff)
downloadmode_match-9d74955612c8b1689cc481aa3f741f186460b221.tar.gz
mode_match-9d74955612c8b1689cc481aa3f741f186460b221.zip
New Line
-rw-r--r--fitness.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitness.m b/fitness.m
index 3516ac7..752e748 100644
--- a/fitness.m
+++ b/fitness.m
@@ -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