summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2012-11-29 16:34:51 -0500
committerMatt Argao <mcargao@email.wm.edu>2012-11-29 16:34:51 -0500
commit568627ff83ac874b1103f3152cbb967fc531a0be (patch)
treeceeac4a9ce8a6dbab9d47a42a81bd4eb861229bf
parent25f066b2f809b9e81612b60772f76fcf66394dde (diff)
downloadmode_match-568627ff83ac874b1103f3152cbb967fc531a0be.tar.gz
mode_match-568627ff83ac874b1103f3152cbb967fc531a0be.zip
Legend changes
-rw-r--r--pick_visualization.m10
1 files changed, 7 insertions, 3 deletions
diff --git a/pick_visualization.m b/pick_visualization.m
index ef679fc..602e509 100644
--- a/pick_visualization.m
+++ b/pick_visualization.m
@@ -1,4 +1,4 @@
-function [ ] = pick_visualization( possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda )
+function [ ] = pick_visualization( fitness_energy, possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda )
%Picks n_visualizations of sets of data and graphs each
x0 = 0;
@@ -6,13 +6,17 @@ n_possible_lens_placement = min(n_visualizations,size(possible_lens_placement_un
for n_graph = 1:n_possible_lens_placement
figure(n_graph)
- w_final_trial = solution_visualization(q0, x0, qf, Ltot, optics_placer(possible_lens_placement(index(n_graph),:), possible_lens_set(index(n_graph),:)), lambda);
+ [w_final_trial, r_final_trial] = solution_visualization(q0, x0, qf, Ltot, optics_placer(possible_lens_placement(index(n_graph),:), possible_lens_set(index(n_graph),:)), lambda);
str1=sprintf('\n f_1 = %0.4f, x_1 = %0.4f\n',possible_lens_set(index(n_graph),1),possible_lens_placement(index(n_graph),1));
str2=sprintf('f_2 = %0.4f, x_2 = %0.4f\n',possible_lens_set(index(n_graph),2),possible_lens_placement(index(n_graph),2));
str3=sprintf('f_3 = %0.4f, x_3 = %0.4f\n',possible_lens_set(index(n_graph),3),possible_lens_placement(index(n_graph),3));
tstr='Solution #';
- title([tstr, num2str(n_graph), str1, str2, str3]);
+ str_w = ['w_{final}= ',num2str(w_final_trial)];
+ str_r = [', r_{final}= ',num2str(r_final_trial)];
+ str_E = sprintf('\nEnergy = %0.4f',fitness_energy(n_graph));
+ title([tstr, num2str(n_graph), str_E, str1, str2, str3, str_w, str_r]);
+
end
end