boa.storage.scheduler_to_json_snapshot#
- boa.storage.scheduler_to_json_snapshot(scheduler: Scheduler, encoder_registry: Optional[Dict[Type, Callable[[Any], Dict[str, Any]]]] = None, class_encoder_registry: Optional[Dict[Type, Callable[[Any], Dict[str, Any]]]] = None) Dict[str, Any][source]#
Serialize this AxClient to JSON to be able to interrupt and restart optimization and save it to file by the provided path.
- Returns
A JSON-safe dict representation of this AxClient.