optimization
Classes:
-
ExportMPS–Allow to export the optimization problem in MPS format.
-
OptimizationParameters–Optimization parameters.
-
OptimizationParametersUpdate–Update optimization parameters.
-
OptimizationTransmissionCapacities–Optimization of transmission capacities.
-
SimplexOptimizationRange–Simplex optimization range.
-
UnfeasibleProblemBehavior–Define the behaviour of the simulator in case of an unfeasible problem.
ExportMPS
Allow to export the optimization problem in MPS format.
Attributes:
-
TRUE–Export MPS for both steps of the optimization.
-
FALSE–Do not export any MPS.
-
OPTIM1–Export MPS only for the first step of the optimization.
-
OPTIM2–Export MPS only for the second step of the optimization.
-
BOTH_OPTIMS–Export MPS for both steps of the optimization.
OptimizationParameters
dataclass
OptimizationParameters(
simplex_range: SimplexOptimizationRange = WEEK,
transmission_capacities: OptimizationTransmissionCapacities = LOCAL_VALUES,
include_constraints: bool = True,
include_hurdlecosts: bool = True,
include_tc_minstablepower: bool = True,
include_tc_min_ud_time: bool = True,
include_dayahead: bool = True,
include_strategicreserve: bool = True,
include_spinningreserve: bool = True,
include_primaryreserve: bool = True,
include_exportmps: ExportMPS = FALSE,
include_unfeasible_problem_behavior: UnfeasibleProblemBehavior = ERROR_VERBOSE,
)
Optimization parameters.
Attributes:
-
simplex_range(SimplexOptimizationRange) –Simplex optimization range (
WEEKin general orDAY). -
transmission_capacities(OptimizationTransmissionCapacities) –Override transmission capacities (
LOCAL_VALUES,NULL_FOR_ALL_LINKS,INFINITE_FOR_ALL_LINKS,NULL_FOR_PHYSICAL_LINKS,INFINITE_FOR_PHYSICAL_LINKS). -
include_constraints(bool) –Whether to include binding constraints.
-
include_hurdlecosts(bool) –Whether to include hurdle costs.
-
include_tc_minstablepower(bool) –Whether to activate the constraint of minimum stable power for thermal units.
-
include_tc_min_ud_time(bool) –Whether to activate the constraint of minimum start-up time for thermal units.
-
include_dayahead(bool) –Whether to activate day-ahead reserve constraints.
-
include_strategicreserve(bool) –Whether to activate
-
include_spinningreserve(bool) –Whether to activate
-
include_primaryreserve(bool) –Whether to activate
-
include_exportmps(ExportMPS) –Choices to export MPS files (
TRUE,FALSE,OPTIM1,OPTIM2, orBOTH_OPTIMS). -
include_unfeasible_problem_behavior(UnfeasibleProblemBehavior) –Choices to export MPS files in case of an unfeasible problem (
WARNING_DRY,WARNING_VERBOSE,ERROR_DRY,ERROR_VERBOSE).
OptimizationParametersUpdate
dataclass
OptimizationParametersUpdate(
simplex_range: Optional[SimplexOptimizationRange] = None,
transmission_capacities: Optional[OptimizationTransmissionCapacities] = None,
include_constraints: Optional[bool] = None,
include_hurdlecosts: Optional[bool] = None,
include_tc_minstablepower: Optional[bool] = None,
include_tc_min_ud_time: Optional[bool] = None,
include_dayahead: Optional[bool] = None,
include_strategicreserve: Optional[bool] = None,
include_spinningreserve: Optional[bool] = None,
include_primaryreserve: Optional[bool] = None,
include_exportmps: Optional[ExportMPS] = None,
include_unfeasible_problem_behavior: Optional[UnfeasibleProblemBehavior] = None,
)
OptimizationTransmissionCapacities
Optimization of transmission capacities.
Allow the user to override the transmission capacities on links.
Attributes:
-
LOCAL_VALUES–Use the local property for all links, including physical links (no override).
-
NULL_FOR_ALL_LINKS–Override all transmission capacities with 0.
-
INFINITE_FOR_ALL_LINKS–Override all transmission capacities with inf.
-
NULL_FOR_PHYSICAL_LINKS–Override transmission capacities with 0 on physical links only.
-
INFINITE_FOR_PHYSICAL_LINKS–Override transmission capacities with inf on physical links only.
SimplexOptimizationRange
Simplex optimization range.
In the formulation of the optimal hydro-thermal unit-commitment and dispatch problem,
the reference hydro energy \(HIT\) used to set the right hand sides of hydro constraints depends
on the value chosen for this parameter, and is defined as follows:
- day: for each day d of week \(\omega\) : \(HIT = W_d^2\)
- week: for week \(\omega\): \(HIT = \sum_{d\in \omega}{W_d^2}\)
Weekly optimization performs a more refined unit-commitment, especially when unit_commitment_mode is set to accurate.
Attributes:
-
DAY– -
WEEK–
UnfeasibleProblemBehavior
Define the behaviour of the simulator in case of an unfeasible problem.
Attributes:
-
WARNING_DRY–Continue simulation.
-
WARNING_VERBOSE–Continue simulation, but export the MPS file of the unfeasible problem.
-
ERROR_DRY–Stop simulation.
-
ERROR_MPS–Stop simulation, and export the MPS file of the unfeasible problem.