-
Notifications
You must be signed in to change notification settings - Fork 0
/
RApDoP.m
23 lines (23 loc) · 1.13 KB
/
RApDoP.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pathdef_rapdop
% config.pts = [0 0 1 1; 0 1 1 0]; % unit square
config = ui;
% pts = [0 0 1 1; 0 1 1 0]; % unit square
% config.pts = [0 0 1 1 2 2 3 3 2 2 1 1;0 3 3 2 2 3 3 0 0 1 1 0]*2.5; %Fixed Shape H
% pts = [1 6 6 1;1 1 6 6]; %Fixed Square
% pts = [0,4,8,4;0,4,0,8]; %Fixed StarTrek
% config.pts = [0 0 1 1 2 2 0;0 2 2 1 1 0 0]; %L shape
% config.pts = [6.27071823204420,1.33517495395948,1.77716390423573,8.53591160220994,9.86187845303867,9.08839779005525,6.67587476979742,8.79373848987109,8.51749539594843,7.46777163904236,3.19521178637201;3.37009803921569,3.90931372549020,9.08088235294118,9.79166666666667,5.50245098039216,1.28676470588236,1.33578431372549,2.34068627450981,7.07107843137255,5.01225490196079,4.79166666666667];
% config.cons = [1 2 7 10];% eg: [1 2 5 6;1,3,3,4];
max_data.r = [];
max_data.xc = {};
max_data.yc = {};
max_data.trails = [];
save('last_config.mat', 'config')
save('max.mat','max_data')
fig_count = 1;
LE_max = main_config(config);
figure(fig_count)
GeneratePlots(config.n, LE_max.xt, LE_max.yt, LE_max.xc, LE_max.yc, LE_max.r, config.cons, fig_count);
fig_count = fig_count + 1;
load('max.mat','max_data')
disp(max_data.r)