API Reference#
World module#
- World module
World
World.addr
World.container
World.distributed_role
World.export_csv_path
World.db
World.market_operators
World.markets
World.unit_operators
World.unit_types
World.bidding_strategies
World.clearing_mechanisms
World.addresses
World.loop
World.clock
World.start
World.end
World.learning_config
World.perform_evaluation
World.forecaster
World.learning_mode
World.output_agent_addr
World.bidding_params
World.index
World.add_market()
World.add_market_operator()
World.add_rl_unit_operator()
World.add_unit()
World.add_unit_operator()
World.add_units_with_operator_subprocess()
World.async_add_unit()
World.async_run()
World.create_unit()
World.reset()
World.run()
World.setup()
World.setup_learning()
World.setup_output_agent()
Market classes#
- Market Classes
- Subpackages
- Submodules
- assume.markets.base_market module
MarketMechanism
MarketRole
MarketRole.clear_market()
MarketRole.handle_data_request()
MarketRole.handle_get_unmatched()
MarketRole.handle_orderbook()
MarketRole.handle_registration()
MarketRole.latitude
MarketRole.longitude
MarketRole.marketconfig
MarketRole.opening()
MarketRole.registered_agents
MarketRole.required_fields
MarketRole.setup()
MarketRole.store_market_results()
MarketRole.store_order_book()
- Module contents
Units#
- Units
- Submodules
- assume.units.demand module
- assume.units.powerplant module
- assume.units.storage module
Storage
Storage.as_dict()
Storage.calculate_marginal_cost()
Storage.calculate_min_max_charge()
Storage.calculate_min_max_discharge()
Storage.calculate_ramp_charge()
Storage.calculate_ramp_discharge()
Storage.calculate_soc_max_charge()
Storage.calculate_soc_max_discharge()
Storage.execute_current_dispatch()
Storage.get_starting_costs()
Storage.set_dispatch_plan()
- Module contents
Scenario loaders#
Bidding strategies#
- Bidding strategies
- Submodules
- assume.strategies.advanced_orders module
- assume.strategies.dmas_powerplant module
- assume.strategies.dmas_storage module
- assume.strategies.extended module
- assume.strategies.flexable module
- assume.strategies.flexable_storage module
- assume.strategies.learning_advanced_orders module
RLAdvancedOrderStrategy
RLAdvancedOrderStrategy.foresight
RLAdvancedOrderStrategy.max_bid_price
RLAdvancedOrderStrategy.max_demand
RLAdvancedOrderStrategy.device
RLAdvancedOrderStrategy.float_type
RLAdvancedOrderStrategy.learning_mode
RLAdvancedOrderStrategy.algorithm
RLAdvancedOrderStrategy.actor_architecture_class
RLAdvancedOrderStrategy.actor
RLAdvancedOrderStrategy.order_types
RLAdvancedOrderStrategy.episodes_collecting_initial_experience
RLAdvancedOrderStrategy.calculate_bids()
RLAdvancedOrderStrategy.calculate_reward()
RLAdvancedOrderStrategy.create_observation()
- assume.strategies.learning_strategies module
RLStrategy
RLStrategy.foresight
RLStrategy.max_bid_price
RLStrategy.max_demand
RLStrategy.device
RLStrategy.float_type
RLStrategy.learning_mode
RLStrategy.algorithm
RLStrategy.actor_architecture_class
RLStrategy.actor
RLStrategy.order_types
RLStrategy.action_noise
RLStrategy.collect_initial_experience_mode
RLStrategy.calculate_bids()
RLStrategy.calculate_reward()
RLStrategy.create_observation()
RLStrategy.get_actions()
RLStrategy.load_actor_params()
- assume.strategies.naive_strategies module
- Module contents
Reinforcement learning algorithms#
- Reinforcement learning algorithms
- Submodules
- assume.reinforcement_learning.buffer module
- assume.reinforcement_learning.learning_role module
Learning
Learning.compare_and_save_policies()
Learning.create_learning_algorithm()
Learning.get_inter_episodic_data()
Learning.get_noise_scale()
Learning.initialize_policy()
Learning.load_inter_episodic_data()
Learning.save_buffer_and_update()
Learning.set_noise_scale()
Learning.setup()
Learning.turn_off_initial_exploration()
Learning.update_policy()
- assume.reinforcement_learning.learning_utils module
- assume.reinforcement_learning.algorithms.base_algorithm module
- assume.reinforcement_learning.algorithms.matd3 module
- Module contents
Common components and methods#
- Common components and methods
- Submodules
- assume.common.base module
BaseStrategy
BaseUnit
BaseUnit.id
BaseUnit.unit_operator
BaseUnit.technology
BaseUnit.bidding_strategies
BaseUnit.index
BaseUnit.node
BaseUnit.forecaster
BaseUnit.as_dict()
BaseUnit.calculate_bids()
BaseUnit.calculate_cashflow()
BaseUnit.calculate_generation_cost()
BaseUnit.calculate_marginal_cost()
BaseUnit.execute_current_dispatch()
BaseUnit.get_output_before()
BaseUnit.get_starting_costs()
BaseUnit.reset_saved_rl_data()
BaseUnit.set_dispatch_plan()
LearningConfig
LearningConfig.actor_architecture
LearningConfig.algorithm
LearningConfig.batch_size
LearningConfig.continue_learning
LearningConfig.device
LearningConfig.early_stopping_steps
LearningConfig.early_stopping_threshold
LearningConfig.episodes_collecting_initial_experience
LearningConfig.gamma
LearningConfig.gradient_steps
LearningConfig.learning_mode
LearningConfig.learning_rate
LearningConfig.max_bid_price
LearningConfig.noise_dt
LearningConfig.noise_scale
LearningConfig.noise_sigma
LearningConfig.train_freq
LearningConfig.trained_policies_save_path
LearningConfig.training_episodes
LearningStrategy
SupportsMinMax
SupportsMinMax.calculate_min_max_power()
SupportsMinMax.calculate_ramp()
SupportsMinMax.efficiency
SupportsMinMax.emission_factor
SupportsMinMax.get_average_operation_times()
SupportsMinMax.get_clean_spread()
SupportsMinMax.get_operation_time()
SupportsMinMax.get_starting_costs()
SupportsMinMax.max_power
SupportsMinMax.min_down_time
SupportsMinMax.min_operating_time
SupportsMinMax.min_power
SupportsMinMax.ramp_down
SupportsMinMax.ramp_up
SupportsMinMaxCharge
SupportsMinMaxCharge.calculate_min_max_charge()
SupportsMinMaxCharge.calculate_min_max_discharge()
SupportsMinMaxCharge.calculate_ramp_charge()
SupportsMinMaxCharge.calculate_ramp_discharge()
SupportsMinMaxCharge.efficiency_charge
SupportsMinMaxCharge.efficiency_discharge
SupportsMinMaxCharge.get_clean_spread()
SupportsMinMaxCharge.get_soc_before()
SupportsMinMaxCharge.initial_soc
SupportsMinMaxCharge.max_power_charge
SupportsMinMaxCharge.max_power_discharge
SupportsMinMaxCharge.max_volume
SupportsMinMaxCharge.min_power_charge
SupportsMinMaxCharge.min_power_discharge
SupportsMinMaxCharge.ramp_down_charge
SupportsMinMaxCharge.ramp_down_discharge
SupportsMinMaxCharge.ramp_up_charge
SupportsMinMaxCharge.ramp_up_discharge
- assume.common.exceptions module
- assume.common.forecasts module
CsvForecaster
CsvForecaster.index
CsvForecaster.powerplants_units
CsvForecaster.calc_forecast_if_needed()
CsvForecaster.calculate_marginal_cost()
CsvForecaster.calculate_market_price_forecast()
CsvForecaster.calculate_residual_load_forecast()
CsvForecaster.get_registered_market_participants()
CsvForecaster.save_forecasts()
CsvForecaster.set_forecast()
Forecaster
NaiveForecast
RandomForecaster
- assume.common.mango_serializer module
- assume.common.market_objects module
ClearingMessage
DataRequestMessage
MarketConfig
MarketConfig.additional_fields
MarketConfig.addr
MarketConfig.aid
MarketConfig.eligible_obligations_lambda()
MarketConfig.market_id
MarketConfig.market_mechanism
MarketConfig.market_products
MarketConfig.maximum_bid_price
MarketConfig.maximum_bid_volume
MarketConfig.maximum_gradient
MarketConfig.minimum_bid_price
MarketConfig.opening_duration
MarketConfig.opening_hours
MarketConfig.param_dict
MarketConfig.price_tick
MarketConfig.price_unit
MarketConfig.product_type
MarketConfig.supports_get_unmatched
MarketConfig.volume_tick
MarketConfig.volume_unit
MarketProduct
MetaDict
OnlyHours
OpeningMessage
Order
OrderBookMessage
Product
RegistrationMessage
RegistrationReplyMessage
- assume.common.outputs module
OutputDef
WriteOutput
WriteOutput.check_columns()
WriteOutput.del_similar_runs()
WriteOutput.delete_db_scenario()
WriteOutput.get_sum_reward()
WriteOutput.handle_message()
WriteOutput.on_stop()
WriteOutput.setup()
WriteOutput.store_dfs()
WriteOutput.store_grid()
WriteOutput.write_market_dispatch()
WriteOutput.write_market_orders()
WriteOutput.write_market_results()
WriteOutput.write_rl_params()
WriteOutput.write_unit_dispatch()
WriteOutput.write_units_definition()
- assume.common.units_operator module
UnitsOperator
UnitsOperator.available_markets
UnitsOperator.registered_markets
UnitsOperator.last_sent_dispatch
UnitsOperator.use_portfolio_opt
UnitsOperator.portfolio_strategy
UnitsOperator.valid_orders
UnitsOperator.units
UnitsOperator.id
UnitsOperator.context
UnitsOperator.add_unit()
UnitsOperator.formulate_bids()
UnitsOperator.formulate_bids_portfolio()
UnitsOperator.get_actual_dispatch()
UnitsOperator.handle_data_request()
UnitsOperator.handle_market_feedback()
UnitsOperator.handle_opening()
UnitsOperator.handle_registration_feedback()
UnitsOperator.participate()
UnitsOperator.register_market()
UnitsOperator.set_unit_dispatch()
UnitsOperator.setup()
UnitsOperator.submit_bids()
UnitsOperator.write_actual_dispatch()
- assume.common.utils module
adjust_unit_operator_for_learning()
aggregate_step_amount()
check_for_tensors()
convert_to_rrule_freq()
create_incidence_matrix()
create_rrule()
datetime2timestamp()
get_available_products()
get_products_index()
get_test_demand_orders()
initializer()
normalize_availability()
plot_orderbook()
rename_study_case()
separate_orders()
timestamp2datetime()
visualize_orderbook()
- assume.common.grid_utils module
- Module contents