aboutsummaryrefslogtreecommitdiff
path: root/find_min.m
diff options
context:
space:
mode:
authorMatt Argao <mcargao@email.wm.edu>2013-02-04 14:25:08 -0500
committerMatt Argao <mcargao@email.wm.edu>2013-02-04 14:25:08 -0500
commit20f24d2ec65b9c46c64b34080a72f498a95fe2bb (patch)
tree2feeb4fb5670cbca6e5aac4b45b517f137d88d58 /find_min.m
parentdfed0d0433eddf745f06253c816bdcae7d99ce5e (diff)
downloadmode_match-20f24d2ec65b9c46c64b34080a72f498a95fe2bb.tar.gz
mode_match-20f24d2ec65b9c46c64b34080a72f498a95fe2bb.zip
Added find_min function. Modified approriate files to ensure proper usage.
Diffstat (limited to 'find_min.m')
-rw-r--r--find_min.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/find_min.m b/find_min.m
new file mode 100644
index 0000000..2c3ae7d
--- /dev/null
+++ b/find_min.m
@@ -0,0 +1,8 @@
+function [ x_sol, energy ] = find_min( index, lens_placement, fitness_simplified, MaxFunEvals, MaxIter )
+%FIND_MIN Summary of this function goes here
+% Detailed explanation goes here
+
+ [x_sol, energy] = fminsearch(fitness_simplified, lens_placement(index,:), optimset('TolFun',1e-5,'MaxFunEvals',MaxFunEvals,'MaxIter', MaxIter));
+
+end
+