summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fitter_check.m11
-rw-r--r--remove_similar_soln.m2
2 files changed, 5 insertions, 8 deletions
diff --git a/fitter_check.m b/fitter_check.m
index 9d59c9d..ebb3ad1 100644
--- a/fitter_check.m
+++ b/fitter_check.m
@@ -20,14 +20,11 @@ qf=wr2q(wf,rf,lambda);
[ possible_lens_placement, possible_lens_set, possible_sample_energy] = mode_match( q0, qf, Ltot, lambda, lens_permutations );
%Remove similar solutions
-n_truncate = 4;
-[ possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index ] = remove_similar_soln( possible_sample_energy, possible_lens_placement, possible_lens_set, n_truncate );
+n_truncate = 3; %number of digits in truncated solution
+[ possible_lens_placement_uniq, possible_lens_placement, possible_sample_energy, possible_lens_set, index ] = remove_similar_soln( possible_sample_energy, possible_lens_placement, possible_lens_set, n_truncate );
-%Visualize five best solutions
-n_visualizations = 5;
-pick_visualization( possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda );
-
-possible_sample_energy(index(1:n_visualizations),:)
+n_visualizations = 5; %number of best solutions to visualize
+pick_visualization( possible_sample_energy, possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index, n_visualizations, q0, qf, Ltot, lambda );
% %Visualize fitness function for fixed f2 and f3
diff --git a/remove_similar_soln.m b/remove_similar_soln.m
index 4e554ab..9bea732 100644
--- a/remove_similar_soln.m
+++ b/remove_similar_soln.m
@@ -1,4 +1,4 @@
-function [ possible_lens_placement_uniq, possible_lens_placement, possible_lens_set, index ] = remove_similar_soln( possible_sample_energy, possible_lens_placement, possible_lens_set, n_truncate )
+function [ possible_lens_placement_uniq, possible_lens_placement, possible_sample_energy, possible_lens_set, index ] = remove_similar_soln( possible_sample_energy, possible_lens_placement, possible_lens_set, n_truncate )
%REMOVE_SIMILAR_SOLN Summary of this function goes here
% Detailed explanation goes here