-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.m
24 lines (23 loc) · 813 Bytes
/
Main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% ============================================================================
% DESCRIPTION
%
% usage: [output_data, bestVal, finalSol] = SimulatedAnnealingCustom('SimulateIntersection', x0, maxIter, C);
%
%
% ----------------------------------------------------------------------------
% PARAMETERS
%
% x0 starting point
% maxIter # of iterations
% C constant
% ---------------------------------------------------------------------------
% RETURN VALUES
%
% rnd an exponentially distributed random variable
%
% ============================================================================
objfunc = 'SimulateIntersection';
x0 = [5, 8];
maxIter = 1000;
C = 0.001 ;
[output_data, bestVal, finalSol] = SimulatedAnnealingCustom('SimulateIntersection', x0, maxIter, C);