could you please give me an idea to write loop in loop? is it correct to write as the code below?
Thanks,
Code: Select all
loop (it$((UB1-LB1)>TOL),
loop (it$((UB-LB)>TOL),
statement1
statement2
);
);
Code: Select all
loop (it$((UB1-LB1)>TOL),
loop (it$((UB-LB)>TOL),
statement1
statement2
);
);
Code: Select all
loop (it$((UB1-LB1)>TOL and (UB-LB)>TOL)),
statement1
statement2
);
Code: Select all
alias(it, ait)
loop (it$((UB1-LB1)>TOL),
loop (ait$((UB-LB)>TOL),
statement1
statement2
);
);
gamsadmin wrote: ↑3 years ago Hi
You could write this as one condition:If you want to use two loops, you need to make an alias for it:Code: Select all
loop (it$((UB1-LB1)>TOL and (UB-LB)>TOL)), statement1 statement2 );
CheersCode: Select all
alias(it, ait) loop (it$((UB1-LB1)>TOL), loop (ait$((UB-LB)>TOL), statement1 statement2 ); );
Renger