You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was answered in issue #3575 to use the abort keyword to execute an action at the end of each simulation for the batch experiment, but it doesn't seem to work as expected.
model NewModel
global
{
int a <- 1;
init
{
write "init";
}
abort
{
write "abort";
}
}
experiment ex type: batch until: cycle >1
{
parameter "a" var: a min: 1 max: 3 step:1;
}
Result: no "abort" was printed.
It's probably because the simulation doesn't get killed. I also tried to ask the world to die and the abort does work but then the simulation just seems to run indefinitely with no cycle elapsed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was answered in issue #3575 to use the abort keyword to execute an action at the end of each simulation for the batch experiment, but it doesn't seem to work as expected.
Result: no "abort" was printed.
It's probably because the simulation doesn't get killed. I also tried to ask the world to die and the abort does work but then the simulation just seems to run indefinitely with no cycle elapsed.
Beta Was this translation helpful? Give feedback.
All reactions