User Tools

Site Tools


documentation:memorizing_less_simulation_steps_to_save_memory

Memorizing less simulation steps to save memory

fc-12.5.2021

Principle

During a simulation in a Project in Capsis, it is possible to choose a memorizing strategy regarding the simulations steps. It is possible to keep all the steps calculated by the model, or to keep only some of them (the others are lost). This can help for big simulations using a lot of memory.

This feature is based on Memorizers. A Memorizer can be linked to the project and each time a step is created, the Memorizer will be asked if this step should be memorized (kept in the Project, i.e. kept in memory).

Once a memorizer is selected, it will act until it is replaced by another one. E.g. it is possible to save everything dusing 10 years, then to swith and save only one step out of two for the rest of the simulation.

These Memorizers can be used in interactive mode with the Capsis Graphical user interface, or in script mode.

The DefaultMemorizer always says 'yes', that's why it is called 'All in memory' in the Capsis user interface.

The FrequencyMemorizer can be configured with a frequency, e.g. 2 to save every second step.

The CompactMemorizer will save only the last step of a simulation (note: the root step is always saved).

The FlexibleMemorizer can be configured and given a list of dates: only the steps with these dates will be saved. This Memorizer can be configured with a file containing a list of dates.

In Capsis interactive mode, once a project is opened (and you can see the root step), you can access the Memorizer configuration with Project > Configure.

Select and configure the Memorizer you like from now on for the simulation.

Selecting the FlexibleMemorizer and configuring it with a list of dates A simulation with the flexible memorizer: first keep all dates, then one out of two, then the final step

documentation/memorizing_less_simulation_steps_to_save_memory.txt ยท Last modified: 2021/12/13 09:28 by 127.0.0.1