I am new in anylogic, and I want to write a stop condition for the simulation and then save the final values: I have some stocks and flows and I want that when one of my stock values reaches a specific value, the simulation stop and then saves all the values;
Thanks :)
if (myStock > myMaxValue) {
getEngine().stop(); // you can also use .finish(), see help to decide which is better for you
}
cheers