summaryrefslogtreecommitdiff
path: root/find_min.m
diff options
context:
space:
mode:
Diffstat (limited to 'find_min.m')
-rw-r--r--find_min.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/find_min.m b/find_min.m
index 2c3ae7d..a6962d2 100644
--- a/find_min.m
+++ b/find_min.m
@@ -1,7 +1,5 @@
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
-
+%Minimizes energy for given solution
[x_sol, energy] = fminsearch(fitness_simplified, lens_placement(index,:), optimset('TolFun',1e-5,'MaxFunEvals',MaxFunEvals,'MaxIter', MaxIter));
end