-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeplots.m
48 lines (42 loc) · 1.08 KB
/
makeplots.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
close all;
xs = 1:50;
figure
hold on
% plot(xs, kk_res,'r')
plot(xs, stand_rr_res,'c')
plot(xs, stand_hc_res,'g')
plot(xs, stand_sa_res,'m')
title('Residues Using Standard Representation')
xlabel('Trial Number')
ylabel('Residue')
legend('Repeated Random','Hill Climbing','Simulated Annealing')
figure
hold on
% plot(xs, kk_res,'r')
plot(xs, pre_rr_res,'c')
plot(xs, pre_hc_res,'g')
plot(xs, pre_sa_res,'m')
title('Residues Using Pre-Partitioning and KK')
xlabel('Trial Number')
ylabel('Residue')
legend('Repeated Random','Hill Climbing','Simulated Annealing')
figure
hold on
% plot(xs, kk_res,'r')
plot(xs, stand_rr_time,'c')
plot(xs, stand_hc_time,'g')
plot(xs, stand_sa_time,'m')
title('Time Using Standard Representation')
xlabel('Trial Number')
ylabel('Time (ms)')
legend('Repeated Random','Hill Climbing','Simulated Annealing')
figure
hold on
% plot(xs, kk_res,'r')
plot(xs, pre_rr_time,'c')
plot(xs, pre_hc_time,'g')
plot(xs, pre_sa_time,'m')
title('Time Using Pre-Partitioning and KK')
xlabel('Trial Number')
ylabel('Time (ms)')
legend('Repeated Random','Hill Climbing','Simulated Annealing')