Is it possible to perform look ahead simulation in AnyLogic?
Specifically:
- Simulate till time T.
- Using 2 values of a variable, simulate for both values till T+t in parallel.
- Evaluate the system state at T+t, choose the value of variable which leads to better performance.
- Continue simulating from T using the selected value for the variable.
This is the basic functionality I am trying to implement. The variable values can be taken from decision tree, which should not affect the implementation.
Please let me know if someone has done something like this.
Yes, it is possible with some Java code. You may:
- Pause parent experiment, save snapshot at time T;
- Create two new experiments from parent experiment;
- Load snapshots in two new experiments;
- Continue execution of both experiments till time T + t;
- Send notification to parent experiment, compare the results, assign the best value and continue simulation.
Some points can be done manually with UI controls or by code, some — by code only.