omegalpes.general package
Subpackages
- omegalpes.general.optimisation package
- Submodules
- omegalpes.general.optimisation.core module
OptObjectOptObject.deactivate_optobject_external_constraints()OptObject.get_actor_constraints_list()OptObject.get_actor_constraints_name_list()OptObject.get_constraints_list()OptObject.get_constraints_name_list()OptObject.get_objectives_list()OptObject.get_objectives_name_list()OptObject.get_quantities_list()OptObject.get_quantities_name_list()OptObject.get_technical_constraints_list()OptObject.get_technical_constraints_name_list()
- omegalpes.general.optimisation.elements module
- omegalpes.general.optimisation.model module
OptimisationModelOptimisationModel.add_nodes()OptimisationModel.add_nodes_and_actors()OptimisationModel.get_model_constraints_list()OptimisationModel.get_model_constraints_name_list()OptimisationModel.get_model_objectives_list()OptimisationModel.get_model_objectives_name_list()OptimisationModel.get_model_quantities_list()OptimisationModel.get_model_quantities_name_list()OptimisationModel.solve_and_update()OptimisationModel.update_units()
check_if_unit_could_have_parent()compute_gurobi_IIS()
- Module contents
- omegalpes.general.utils package
Submodules
omegalpes.general.time module
This module creates the Time object
- class omegalpes.general.time.TimeUnit(start='01/01/2018', end=None, periods=None, dt=1, verbose=True)[source]
Bases:
objectDescription
Class defining the studied time period.
Attributes
DATES : dated list of simulation steps
DT : delta t between values in hours (int or float), i.e. 1/6 will be 10 minutes.
LEN : number of simulation steps (length of DATES)
I : index of time ([0 : LEN])
- get_date_for_index(index)[source]
Getting a date for a given index
- Parameters:
index – int value for the index of the wanted dated, between 0 and LEN (it must be in the studied period)
- property get_days
Getting days for the studied period
- Return all_days:
list of days of the studied period
- get_index_for_date(date='YYYY-MM-DD HH:MM:SS')[source]
Getting the index associated with a date
- Parameters:
date – date the index of is wanted. Format YYYY-MM-DD HH:MM:SS, must be within the studied period and consistent with the timestep value
- get_index_for_date_range(starting_date='YYYY-MM-DD HH:MM:SS', end=None, periods=None)[source]
Getting a list of index for a date range
- Parameters:
starting_date – starting date of the wanted index
end – ending date of the wanted index
periods – number of periods from the starting_date of the wanted index
- Return index_list:
list of indexes for the given dates