el1xr_opt.Modules.oM_LoadCase

Contents

el1xr_opt.Modules.oM_LoadCase#

el1xr_opt.Modules.oM_LoadCase.load_case(directory=None, case=None, date=None, solver='highs', rawresults=False, plots=False, indlog=False)[source]#

Create and validate a load case configuration.

Parameters:
  • dir (str, optional) – Directory where the case is located. Defaults to “../site-packages/el1xr_opt”.

  • case (str, optional) – Name of the case to load. Defaults to “Grid1”.

  • date (datetime or str, optional) – Date information. If string, it should follow “%Y-%m-%d %H:%M”. Defaults to current datetime (rounded to minute).

  • solver (str, optional) – Solver to be used. Defaults to “highs”.

  • rawresults (bool, optional) – Whether to save raw results. Defaults to False.

  • plots (bool, optional) – Whether to generate plots. Defaults to False.

  • indlog (bool, optional) – Whether to enable individual logging. Defaults to False.

  • directory (str | None)

Returns:

A dictionary containing the case configuration.

Return type:

dict