Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t1 = task('t1_2',2);
- t2 = task('t2_5',5);
- t3 = task('t3_6',6);
- t4 = task('t4_5',5);
- t5 = task('t5_3',3);
- t6 = task('t6_2',2);
- t7 = task('t7_1',1);
- t8 = task('t8_1',1);
- t9 = task('t9_4',4);
- t10 = task('t10_3',3);
- t11 = task('t11_2',2);
- t12 = task('t12_1',1);
- t13 = task('t13_1',1);
- prec = [
- 0 0 0 0 1 0 0 0 0 0 0 0 0
- 0 0 0 0 0 1 0 0 0 0 0 0 0
- 0 0 0 0 0 0 1 0 0 0 0 0 0
- 0 0 0 0 0 0 0 1 0 0 0 0 0
- 0 0 0 0 0 0 0 0 0 1 0 0 0
- 0 0 0 0 0 0 0 0 0 1 0 0 0
- 0 0 0 0 0 0 0 0 1 0 1 0 0
- 0 0 0 0 0 0 0 0 0 0 0 0 1
- 0 0 0 0 0 0 0 0 0 0 0 1 0
- 0 0 0 0 0 0 0 0 0 0 0 1 0
- 0 0 0 0 0 0 0 0 0 0 0 0 1
- 0 0 0 0 0 0 0 0 0 0 0 0 0
- 0 0 0 0 0 0 0 0 0 0 0 0 0
- ];
- T = taskset([t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13],prec);
- p = problem('P|prec|Cmax');
- S1 = listsch(T,p,1,'LPT');
- S2 = listsch(T,p,2,'LPT');
- S3 = listsch(T,p,3,'LPT');
- S4 = listsch(T,p,4,'LPT');
- S5 = listsch(T,p,5,'LPT');
- S6 = listsch(T,p,6,'LPT');
- S7 = listsch(T,p,7,'LPT');
- S8 = listsch(T,p,8,'LPT');
- S9 = listsch(T,p,9,'LPT');
- S10= listsch(T,p,10,'LPT');
- k1 = schparam(S1);
- k2 = schparam(S2);
- k3 = schparam(S3);
- k4 = schparam(S4);
- k5 = schparam(S5);
- k6 = schparam(S6);
- k7 = schparam(S7);
- k8 = schparam(S8);
- k9 = schparam(S9);
- k10= schparam(S10);
- tab = [k1.cmax k2.cmax k3.cmax k4.cmax k5.cmax k6.cmax k7.cmax k8.cmax k9.cmax k10.cmax];
- plot(tab);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement