Model.sethistorylimit#
- Model.sethistorylimit(count)#
Sets the maximum number of history states to allow.
- Parameters:
count (int) –
The number of history states to allow. Valid values are:
-1 - Indicates unlimited.
0 - Disables all history recording, including potential legacy use cases.
> 0 - Number of history steps to allow.
Example#
Set the maximum number of history steps to allow up to 100#import hm import hm.entities as ent model = hm.Model() model.sethistorylimit(count=100)