TALOS Scripting Language is created for designing the super-system (system of multiple optimization models) on TALOS Computation Server.
1 |
var i = 0 |
step {from}->{to}
in which to represent the model that’s going to be run within this sequence. Steps are finalized with the command end step.
1 2 3 |
step dim1->dim2 ... end step |
1 |
task j<-0 |
1 2 |
pretask dim1$arcDataExtern.csv[4,3]<-override(j) posttask vPenTotal<-dim1$Z-best |
1 2 3 |
loop while(vPenn<15) ... end loop |
Now let’s see a working script written in TALOS language.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#dim1&2 Exhaustive vPenn Calculation var vPenTotal = 0 var best = 0 var i = 0, j = 0 step #start->dim1 pretask dim1$arcDataExtern.csv[4,3]<-override(1) pretask dim1$arcDataExtern.csv[5,3]<-override(1) posttask best<-dim1$Z end step loop while(i<2) task j<-0 loop while(j<2) step #start->dim1 pretask dim1$arcDataExtern.csv[4,3]<-override(i) pretask dim1$arcDataExtern.csv[5,3]<-override(j) posttask vPenTotal<-dim1$Z-best posttask inc(j) end step end loop task inc(i) end loop run |