rtc-tools 2.8.1__tar.gz → 2.9.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.github/actions/setup-python/action.yml +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.github/workflows/ci.yml +46 -23
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/CHARTER.md +1 -1
- rtc_tools-2.9.0a1/CODE_OF_CONDUCT.md +18 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/CONTRIBUTING.md +10 -10
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/GOVERNANCE.md +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/PKG-INFO +20 -8
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/README.md +8 -1
- rtc_tools-2.9.0a1/doc/examples/optimization/debugging.rst +51 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/pumped_hydropower_system.rst +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/getting-started.rst +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/modelica_models.rst +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/model/Example.mo +5 -5
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/model/Example.mo +2 -2
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/model/Example.mo +5 -5
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/model/ExampleOptimization.mo +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/integrator_delay/model/Example.mo +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/model/PumpedStoragePlant.mo +0 -2
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/reference_output/timeseries_export.csv +22 -22
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/src/example.py +1 -2
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/model/Example.mo +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/model/Example.mo +4 -4
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/pyproject.toml +14 -7
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/sonar-project.properties +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/casadi_to_lp.py +89 -79
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/pi.py +3 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/collocated_integrated_optimization_problem.py +16 -11
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/csv_lookup_table_mixin.py +2 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/goal_programming_mixin.py +7 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/goal_programming_mixin_base.py +14 -3
- rtc_tools-2.9.0a1/src/rtctools/optimization/homotopy_mixin.py +263 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/modelica_mixin.py +34 -15
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/single_pass_goal_programming_mixin.py +1 -1
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_data.py +29 -0
- rtc_tools-2.9.0a1/tests/optimization/data/ModelHomotopyInput.mo +13 -0
- rtc_tools-2.9.0a1/tests/optimization/data/ModelHomotopyInputAlias.mo +13 -0
- rtc_tools-2.9.0a1/tests/optimization/data/ModelHomotopyParameter.mo +11 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_csv_lookuptable_mixin.py +13 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_export_lp.py +160 -34
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_goal_programming.py +16 -1
- rtc_tools-2.9.0a1/tests/optimization/test_homotopy_mixin.py +178 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_integration.py +10 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_modelica_mixin.py +48 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_single_pass_goal_programming.py +54 -3
- rtc_tools-2.9.0a1/tests/simulation/__init__.py +0 -0
- rtc_tools-2.9.0a1/uv.lock +2107 -0
- rtc_tools-2.8.1/doc/examples/optimization/debugging.rst +0 -29
- rtc_tools-2.8.1/src/rtctools/data/__init__.py +0 -4
- rtc_tools-2.8.1/src/rtctools/optimization/homotopy_mixin.py +0 -164
- rtc_tools-2.8.1/uv.lock +0 -2128
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.codecov.yml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.coveragerc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.git-blame-ignore-revs +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.pre-commit-config.yaml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/.readthedocs.yaml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/AUTHORS +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/COPYING +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/COPYING.LESSER +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/Makefile +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/_static/external_links.js +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/_static/theme_overrides.css +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/conf.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/basic.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/cascading_channels.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/channel_pulse.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/channel_wave_damping.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/ensemble.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/fallback_options.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/goal_programming.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/integrator_delay.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/lookup_table.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/mixed_integer.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/step_response.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/basic_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/cascading_channels_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/channel_pulse_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/channel_wave_damping.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/ensemble_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/goal_programming_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/integrator_delay.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/lookup_table_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/mixed_integer_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/pumped_hydropower_system_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/pyplots/simulation_results.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/simulation/custom_equation.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/simulation/setpoint.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/simulation.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/Aggregation_01.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/Lake-Hartwell-24012016.jpg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/PumpedStoragePlant_openmodelica.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/Woudagemaal.jpg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/basic_example_console.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/cascading_channels_omedit.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/channel_impulse_xs.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/channel_wave_damping_omedit.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/graig-coch-2117306_640.jpg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/integrator_delay_modelica.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/lavant-2976738_1280.jpg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/orifice_vs_pump_openmodelica.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/pont-du-gard-1742029_1280.jpg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/rtc-tools-horizontal-color.svg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/rtc-tools-horizontal-white.svg +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/simple_storage_openmodelica.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/single_channel.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/single_channel_hec-ras.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/validation/Downstream_150.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/images/validation/Upstream_150.png +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/index.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/literature.bib +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/make.bat +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/basics.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/csv_io.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/fews_io.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/forecast_uncertainty.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/goal_programming/converting_goals_to_constraints.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/goal_programming/goals.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/goal_programming/linearized_order.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/goal_programming/main_idea.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/goal_programming/minimize_absolute_value.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/homotopy.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/initial_state_estimation.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/linearization.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/lookup_tables.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/multi_objective.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/solver_configuration.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization/time_discretization.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/optimization.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/related-projects.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/simulation/basics.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/simulation/csv_io.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/simulation/fews_io.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/simulation.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/time-series.rst +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/model/Example.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/basic/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/model/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/cascading_channels/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/HEC-RAS.zip +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/HEC-RAS_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/timeseries_export_inertial_wave.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/timeseries_export_inertial_wave_semi_implicit.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/timeseries_export_saint_venant.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/reference_output/timeseries_export_saint_venant_upwind.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_pulse/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/model/ExampleLocalControl.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/model/PIDController.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/reference_output/timeseries_export_local_control.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/src/example_local_control.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/src/example_optimization.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/src/steady_state_initialization_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/src/step_size_parameter_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast1/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast1/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast2/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast2/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/forecast2/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/lookup_tables/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/lookup_tables/curvefit_options.ini +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/input/lookup_tables/storage_V.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/model/Example.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/output/forecast1/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/output/forecast2/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/reference_output/forecast1/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/reference_output/forecast2/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/ensemble/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/fallback_option/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/fallback_option/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/fallback_option/src/example_with_gp.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/model/Example.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/goal_programming/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/integrator_delay/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/integrator_delay/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/integrator_delay/input/timeseries_import_simulation.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/integrator_delay/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/lookup_tables/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/lookup_tables/curvefit_options.ini +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/lookup_tables/storage_V.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/model/Example.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/lookup_table/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/model/Example.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/mixed_integer/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/input/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/model/SimpleModel.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/simulation_with_custom_equations/src/simple_model.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/model/single_reservoir.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/reference_output/timeseries_export.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/single_reservoir/src/single_reservoir.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/input/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/input/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/output/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/reference_output/timeseries_export_saint_venant.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/step_response/src/example.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/alias_tools.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/caching.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/casadi_helpers.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/debug_check_helpers.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/_internal/ensemble_bounds_decorator.py +0 -0
- {rtc_tools-2.8.1/src/rtctools/optimization → rtc_tools-2.9.0a1/src/rtctools/data}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/csv.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/interpolation/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/interpolation/bspline.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/interpolation/bspline1d.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/interpolation/bspline2d.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/netcdf.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/rtc.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/data/storage.py +0 -0
- {rtc_tools-2.8.1/src/rtctools/simulation → rtc_tools-2.9.0a1/src/rtctools/optimization}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/control_tree_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/csv_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/initial_state_estimation_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/io_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/linearization_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/linearized_order_goal_programming_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/min_abs_goal_programming_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/netcdf_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/optimization_problem.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/pi_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/planning_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/optimization/timeseries.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/rtctoolsapp.py +0 -0
- {rtc_tools-2.8.1/tests → rtc_tools-2.9.0a1/src/rtctools/simulation}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/simulation/csv_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/simulation/io_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/simulation/pi_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/simulation/simulation_problem.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/util.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/src/rtctools/version.py +0 -0
- {rtc_tools-2.8.1/tests/data → rtc_tools-2.9.0a1/tests}/__init__.py +0 -0
- {rtc_tools-2.8.1/tests/examples → rtc_tools-2.9.0a1/tests/data}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/curve.dat +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/diag.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/initial_state_0.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/initial_state_1.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/look_up_table_0.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/look_up_table_1.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/look_up_table_2.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/pi_run.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/surface.dat +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_export.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import.bin +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_0.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_1.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_2.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_ensemble.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_ensemble.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_ensemblesize1_noRealization.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_ensemblesize1_withRealization.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data/timeseries_import_neq.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/data_path.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_csv.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_diag.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_interpolate.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_netcdf.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data/test_storage.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/data_path.py +0 -0
- {rtc_tools-2.8.1/tests/internal → rtc_tools-2.9.0a1/tests/examples}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/examples/test_examples.py +0 -0
- {rtc_tools-2.8.1/tests/optimization → rtc_tools-2.9.0a1/tests/internal}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/internal/test_alias_tools.py +0 -0
- {rtc_tools-2.8.1/tests/simulation → rtc_tools-2.9.0a1/tests/optimization}/__init__.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/EmptyModel.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/Model.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelAlgebraic.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelDebugChecks.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelDelay.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelDelayLoop.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelMixedInteger.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelNestedDelay.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelSIUnits.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelSymbolicParameters.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelWithInitial.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelWithInitialLinear.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ModelWithLookupTable.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/SingleShootingModel.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/lookup_tables/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/lookup_tables/curvefit_options.ini +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/lookup_tables/x_prime.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member0/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member0/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member0/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member1/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member1/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member1/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/member1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/Model.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/member1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/member2/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/member3/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/timeseries_import.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_ensemble_sizes/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/member1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/timeseries_import.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_initial_date/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/member1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/timeseries_import.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_timestep/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/member0/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/member1/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/member1/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/timeseries_import.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/multiple_io_mixins/different_values/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/non_zero_indexed_ensembles/Model.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/non_zero_indexed_ensembles/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/non_zero_indexed_ensembles/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/non_zero_indexed_ensembles/rtcParameterConfig_extra.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/non_zero_indexed_ensembles/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/one-member-ensemble/ensemble.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/one-member-ensemble/member0/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/one-member-ensemble/member0/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/one-member-ensemble/member0/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/one-member-ensemble/member0/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/reference_linear_model.lp +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/rtcParameterConfig_extra.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/single_non_zero_ensemble_index/Model.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/single_non_zero_ensemble_index/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/single_non_zero_ensemble_index/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/single_non_zero_ensemble_index/rtcParameterConfig_extra.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/single_non_zero_ensemble_index/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/timeseries_import.nc +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/data_path.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/regenerate_lp_reference.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_control_tree_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_csv_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_debug_checks.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_delay_expressions.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_extra_casadipath.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_interpolation.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_io_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_linearized_order_goal_programming_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_min_abs_goal_programming.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_multiple_io_mixins.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_netcdf_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_optimization_problem.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_path_extra_variables.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_path_variable_assembly.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_pi_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_planning_and_control_tree_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_planning_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_problem_class_check.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_solvers.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_timeseries.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_vector_constraints_variables.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/optimization/test_vector_goals.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/.gitignore +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/Model.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/ModelCustomEquation.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/Model_base.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/Model_delay.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/Model_nominal.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_infeasible.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_out_of_bounds.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_out_of_sym_bounds.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_with_bounds.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_with_input_series.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_with_sym_ystart.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_with_xstart.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/model_with_zero_xstart.mo +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/infeasible_initial_value/timeseries_import_with_x.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/initial_state.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/parameters.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/rtcDataConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/rtcParameterConfig.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/timeseries_import.csv +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data/timeseries_import.xml +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/data_path.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/test_csv_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/test_io_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/test_pi_mixin.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/test_problem_class_check.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/simulation/test_simulation.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/test_case.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tests/test_rtctoolsapp.py +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/tox.ini +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/xsd/rtcDataConfig.xsd +0 -0
- {rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/xsd/rtcSharedTypes.xsd +0 -0
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
runs-on: ubuntu-latest
|
|
21
21
|
timeout-minutes: 30
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
24
|
- uses: ./.github/actions/setup-python
|
|
25
25
|
with:
|
|
26
26
|
dependency-groups: "style"
|
|
@@ -30,15 +30,15 @@ jobs:
|
|
|
30
30
|
needs: [style]
|
|
31
31
|
runs-on: ubuntu-latest
|
|
32
32
|
container:
|
|
33
|
-
image: python:3.
|
|
33
|
+
image: python:3.11
|
|
34
34
|
timeout-minutes: 30
|
|
35
35
|
steps:
|
|
36
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
37
37
|
with:
|
|
38
38
|
fetch-depth: 0
|
|
39
39
|
- uses: ./.github/actions/setup-python
|
|
40
40
|
- run: uv build
|
|
41
|
-
- uses: actions/upload-artifact@
|
|
41
|
+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
42
42
|
if: success()
|
|
43
43
|
with:
|
|
44
44
|
name: "${{ github.job }}"
|
|
@@ -57,20 +57,20 @@ jobs:
|
|
|
57
57
|
strategy:
|
|
58
58
|
matrix:
|
|
59
59
|
include:
|
|
60
|
-
- version: '3.10'
|
|
61
60
|
- version: '3.11'
|
|
62
61
|
- version: '3.12'
|
|
63
62
|
- version: '3.13'
|
|
64
63
|
- version: '3.14'
|
|
64
|
+
- version: '3.15'
|
|
65
65
|
# Lowest and highest resolution modes to test oldest and newest dependencies.
|
|
66
|
-
- version: '3.
|
|
66
|
+
- version: '3.11'
|
|
67
67
|
resolution_mode: 'lowest'
|
|
68
68
|
label: ' (Oldest Dependencies)'
|
|
69
|
-
- version: '3.
|
|
69
|
+
- version: '3.15'
|
|
70
70
|
resolution_mode: 'highest'
|
|
71
71
|
label: ' (Newest Dependencies)'
|
|
72
72
|
steps:
|
|
73
|
-
- uses: actions/checkout@
|
|
73
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
74
74
|
- uses: ./.github/actions/setup-python
|
|
75
75
|
with:
|
|
76
76
|
dependency-groups: "tests"
|
|
@@ -81,12 +81,12 @@ jobs:
|
|
|
81
81
|
needs: build
|
|
82
82
|
runs-on: ubuntu-latest
|
|
83
83
|
container:
|
|
84
|
-
image: python:3.
|
|
84
|
+
image: python:3.11
|
|
85
85
|
timeout-minutes: 30
|
|
86
86
|
env:
|
|
87
87
|
TOXENV: coverage
|
|
88
88
|
steps:
|
|
89
|
-
- uses: actions/checkout@
|
|
89
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
90
90
|
with:
|
|
91
91
|
# Full history required for accurate Sonar SCM blame data
|
|
92
92
|
fetch-depth: 0
|
|
@@ -95,7 +95,7 @@ jobs:
|
|
|
95
95
|
dependency-groups: "tests"
|
|
96
96
|
- run: uv run tox -vv
|
|
97
97
|
- name: Upload coverage report
|
|
98
|
-
uses: actions/upload-artifact@
|
|
98
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
99
99
|
if: success()
|
|
100
100
|
with:
|
|
101
101
|
name: coverage-report
|
|
@@ -120,34 +120,57 @@ jobs:
|
|
|
120
120
|
strategy:
|
|
121
121
|
matrix:
|
|
122
122
|
version:
|
|
123
|
-
- '3.10'
|
|
124
123
|
- '3.11'
|
|
125
124
|
- '3.12'
|
|
126
125
|
- '3.13'
|
|
127
126
|
- '3.14'
|
|
127
|
+
- '3.15'
|
|
128
128
|
steps:
|
|
129
|
-
- uses: actions/checkout@
|
|
129
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
130
130
|
- uses: ./.github/actions/setup-python
|
|
131
131
|
with:
|
|
132
132
|
dependency-groups: "tests"
|
|
133
133
|
- run: uv run tox -vv
|
|
134
134
|
|
|
135
135
|
deploy:
|
|
136
|
-
needs: [test-linux, coverage, examples-linux]
|
|
136
|
+
needs: [build, test-linux, coverage, examples-linux]
|
|
137
137
|
runs-on: ubuntu-latest
|
|
138
|
-
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/2.')
|
|
138
|
+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/2.') }}
|
|
139
139
|
permissions:
|
|
140
140
|
id-token: write # Required for OIDC PyPI publishing
|
|
141
141
|
contents: read
|
|
142
142
|
steps:
|
|
143
|
-
- name:
|
|
144
|
-
uses: actions/
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
- name: Build package
|
|
150
|
-
run: uv build
|
|
143
|
+
- name: Download build distributions
|
|
144
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
145
|
+
with:
|
|
146
|
+
name: build
|
|
147
|
+
path: dist/
|
|
151
148
|
|
|
152
149
|
- name: Publish package distributions to PyPI
|
|
153
150
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
151
|
+
|
|
152
|
+
deploy-nexus:
|
|
153
|
+
needs: [build, test-linux, coverage, examples-linux]
|
|
154
|
+
runs-on: ubuntu-latest
|
|
155
|
+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/2.') }}
|
|
156
|
+
permissions:
|
|
157
|
+
contents: read
|
|
158
|
+
steps:
|
|
159
|
+
- name: Set up uv
|
|
160
|
+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
|
|
161
|
+
with:
|
|
162
|
+
version: "0.13.5"
|
|
163
|
+
enable-cache: false
|
|
164
|
+
|
|
165
|
+
- name: Download build distributions
|
|
166
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
167
|
+
with:
|
|
168
|
+
name: build
|
|
169
|
+
path: dist/
|
|
170
|
+
|
|
171
|
+
- name: Publish package distributions to Deltares Nexus
|
|
172
|
+
env:
|
|
173
|
+
UV_PUBLISH_URL: "https://artifacts.deltares.nl/repository/rtctools-python-release/"
|
|
174
|
+
UV_PUBLISH_USERNAME: ${{ secrets.NEXUS_PYPI_USERNAME }}
|
|
175
|
+
UV_PUBLISH_PASSWORD: ${{ secrets.NEXUS_PYPI_PASSWORD }}
|
|
176
|
+
run: uv publish --check-url "https://artifacts.deltares.nl/repository/rtctools-python-release/simple/"
|
|
@@ -106,7 +106,7 @@ a. Collaborators acknowledge that the copyright in all new contributions will be
|
|
|
106
106
|
|
|
107
107
|
b. Except as described in Section 7.c., all contributions to the Project are subject to the following:
|
|
108
108
|
|
|
109
|
-
i. All new inbound code contributions to the Project must be made using GNU Lesser General Public License v3.0GNU Library General Public License, Version 3.0, available at https://github.com/
|
|
109
|
+
i. All new inbound code contributions to the Project must be made using GNU Lesser General Public License v3.0GNU Library General Public License, Version 3.0, available at https://github.com/rtc-tools/rtc-tools/blob/master/COPYING (the “Project License”).
|
|
110
110
|
|
|
111
111
|
ii. All new inbound code contributions must also be accompanied by a Developer Certificate of Origin (http://developercertificate.org) sign-off in the source code system that is submitted through a TSC-approved contribution process which will bind the authorized contributor and, if not self-employed, their employer to the applicable license;
|
|
112
112
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
RTC-Tools follows the [LF Projects Code of Conduct](https://lfprojects.org/policies/code-of-conduct/),
|
|
4
|
+
consistent with [GOVERNANCE.md](GOVERNANCE.md) and the [Technical Charter](CHARTER.md).
|
|
5
|
+
|
|
6
|
+
All participants in the project are expected to act respectfully and professionally
|
|
7
|
+
in accordance with that policy.
|
|
8
|
+
|
|
9
|
+
## Reporting
|
|
10
|
+
|
|
11
|
+
Do **not** report Code of Conduct violations or other sensitive abuse via public
|
|
12
|
+
GitHub issues.
|
|
13
|
+
|
|
14
|
+
Report privately by emailing
|
|
15
|
+
[info@rtctools.energy](mailto:info@rtctools.energy) — the same private channel
|
|
16
|
+
already documented in [CONTRIBUTING.md](CONTRIBUTING.md) for sensitive reports.
|
|
17
|
+
All complaints will be reviewed and investigated promptly and fairly, with
|
|
18
|
+
regard for the privacy and security of the reporter.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- [Ways to Contribute](#ways-to-contribute)
|
|
7
7
|
- [Guidelines for Creating Issues](#guidelines-for-creating-issues)
|
|
8
8
|
- [Security Reporting](#security-reporting)
|
|
9
|
-
- [Guidelines for Creating
|
|
9
|
+
- [Guidelines for Creating Pull Requests](#guidelines-for-creating-pull-requests)
|
|
10
10
|
- [Commits and Commit Messages](#commits-and-commit-messages)
|
|
11
11
|
- [Code Quality Guidelines](#code-quality-guidelines)
|
|
12
12
|
- [Setting up a Development Environment](#setting-up-a-development-environment)
|
|
@@ -39,13 +39,13 @@ Please follow the issue template and provide as much information as possible to
|
|
|
39
39
|
- **Suggesting features**: If you have any ideas or suggestions for new features or improvements,
|
|
40
40
|
please share them on our [issue tracker](https://github.com/rtc-tools/rtc-tools/issues).
|
|
41
41
|
Please use the appropriate category and tag for your topic and explain your motivation and use case clearly.
|
|
42
|
-
- **Submitting pull requests**: If you want to contribute code or documentation to RTC-Tools, please create a pull request. Before submitting, please follow the [Guidelines for Creating
|
|
42
|
+
- **Submitting pull requests**: If you want to contribute code or documentation to RTC-Tools, please create a pull request. Before submitting, please follow the [Guidelines for Creating Pull Requests](#guidelines-for-creating-pull-requests) below.
|
|
43
43
|
- **Improving documentation**: If you find any errors, typos, or inconsistencies in the documentation,
|
|
44
44
|
or if you want to add more examples, tutorials, or explanations,
|
|
45
|
-
please feel free to edit the documentation files in the docs folder and submit a
|
|
45
|
+
please feel free to edit the documentation files in the docs folder and submit a pull request.
|
|
46
46
|
Please follow the [Sphinx syntax and style guide](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) for writing documentation.
|
|
47
|
-
- **Reviewing
|
|
48
|
-
please review the open
|
|
47
|
+
- **Reviewing pull requests**: If you are familiar with RTC-Tools and want to help us maintain the quality and consistency of the code and documentation,
|
|
48
|
+
please review the open pull requests and provide constructive feedback and suggestions.
|
|
49
49
|
- **Testing new releases**: If you want to help us test the new features and bug fixes before they are officially released,
|
|
50
50
|
please install the latest development version of RTC-Tools from the [GitHub repository](https://github.com/rtc-tools/rtc-tools)
|
|
51
51
|
and report any issues or feedback on the [issue tracker](https://github.com/rtc-tools/rtc-tools/issues).
|
|
@@ -71,9 +71,9 @@ If you discover a security vulnerability, please report it responsibly by emaili
|
|
|
71
71
|
- Exposure of sensitive data or credentials
|
|
72
72
|
- Input data (known or crafted) that causes crashes or data corruption
|
|
73
73
|
|
|
74
|
-
## Guidelines for Creating
|
|
74
|
+
## Guidelines for Creating Pull Requests
|
|
75
75
|
|
|
76
|
-
1. **Identify or create an issue**: Before making any changes, open an issue following the [guidelines](#guidelines-for-creating-issues) above, or comment on an existing one in the [issue tracker](https://github.com/
|
|
76
|
+
1. **Identify or create an issue**: Before making any changes, open an issue following the [guidelines](#guidelines-for-creating-issues) above, or comment on an existing one in the [issue tracker](https://github.com/rtc-tools/rtc-tools/issues) to discuss your ideas with the maintainers. This helps avoid duplication and ensures your contribution aligns with project goals and the [governance model](GOVERNANCE.md).
|
|
77
77
|
2. **Fork or Branch**:
|
|
78
78
|
- New Contributors: Fork the repository and create a new branch in your fork.
|
|
79
79
|
- Committers: Create a new branch directly in the main repository. Use a descriptive branch name, such as `feat/short-description`, `fix/issue-123`, or `docs/update-readme`.
|
|
@@ -82,7 +82,7 @@ If you discover a security vulnerability, please report it responsibly by emaili
|
|
|
82
82
|
- Use existing test datasets from the `tests/data` directory when applicable.
|
|
83
83
|
- For new functionality requiring specific test data, include minimal test datasets with your contribution. Keep test data files small and focused.
|
|
84
84
|
5. **Documentation**: Update documentation and add examples to the `examples` folder if necessary.
|
|
85
|
-
6. **Create a pull request**: Reference the corresponding issue in your PR description. Clearly describe what changes you've made, why, and any relevant context.
|
|
85
|
+
6. **Create a pull request**: Reference the corresponding issue in your PR description (e.g. `Fixes #123`). Clearly describe what changes you've made, why, and any relevant context. Keep the description factual: only state what you have verified, and say how you tested. The repository is rebase-merged, so each commit message lands on `master` as written. Put the reasoning in the commit message body and keep the PR description to what a reviewer needs.
|
|
86
86
|
7. **Check CI status**: Ensure all automated checks and tests pass before requesting a review.
|
|
87
87
|
8. **Request review**: Request a code review from a maintainer or committer (see [Governance Roles](GOVERNANCE.md#governance-roles) and [Operational Roles](GOVERNANCE.md#operational-roles)) and address any comments or suggestions.
|
|
88
88
|
|
|
@@ -153,7 +153,7 @@ By following these guidelines, you help ensure RTC-Tools remains robust, maintai
|
|
|
153
153
|
|
|
154
154
|
To set up your development environment, you will need:
|
|
155
155
|
|
|
156
|
-
- Python 3.
|
|
156
|
+
- Python 3.11 or higher (up to 3.15)
|
|
157
157
|
- Git
|
|
158
158
|
- uv: see the [official installation guide](https://docs.astral.sh/uv/getting-started/installation/).
|
|
159
159
|
|
|
@@ -216,7 +216,7 @@ All contributors are expected to follow the governance model outlined in the [Te
|
|
|
216
216
|
## Licensing and Developer Certificate of Origin (DCO)
|
|
217
217
|
|
|
218
218
|
- **Code contributions**: All code must be contributed under the GNU Lesser General Public License v3.0 (LGPL-3.0).
|
|
219
|
-
See [COPYING](https://github.com/
|
|
219
|
+
See [COPYING](https://github.com/rtc-tools/rtc-tools/blob/master/COPYING) and [COPYING.LESSER](https://github.com/rtc-tools/rtc-tools/blob/master/COPYING.LESSER) for details.
|
|
220
220
|
- **Documentation contributions**: All documentation is licensed under the [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
|
|
221
221
|
- **SPDX Identifiers**: Please include appropriate SPDX license identifiers in new files.
|
|
222
222
|
|
|
@@ -50,7 +50,7 @@ Decisions are made by consensus when possible; if a vote is required, each votin
|
|
|
50
50
|
|
|
51
51
|
### Becoming a Committer
|
|
52
52
|
|
|
53
|
-
Anyone can contribute to RTC-Tools by following the [Guidelines for Creating
|
|
53
|
+
Anyone can contribute to RTC-Tools by following the [Guidelines for Creating Pull Requests](CONTRIBUTING.md#guidelines-for-creating-pull-requests). Contributors who have demonstrated sustained commitment to the project may be nominated to become Committers. The path typically involves:
|
|
54
54
|
|
|
55
55
|
1. **Building a track record**: Make regular, high-quality contributions as described in [Ways to Contribute](CONTRIBUTING.md#ways-to-contribute).
|
|
56
56
|
2. **Nomination**: Any existing Committer can nominate a Contributor, or Contributors can express interest by contacting an existing Committer or emailing [info@rtctools.energy](mailto:info@rtctools.energy).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: rtc-tools
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.9.0a1
|
|
4
4
|
Summary: Toolbox for control and optimization of water systems.
|
|
5
5
|
Project-URL: Homepage, https://oss.deltares.nl/web/rtc-tools/home
|
|
6
6
|
Project-URL: Download, https://github.com/rtc-tools/rtc-tools/
|
|
@@ -184,21 +184,26 @@ Classifier: Operating System :: POSIX
|
|
|
184
184
|
Classifier: Operating System :: Unix
|
|
185
185
|
Classifier: Programming Language :: Python
|
|
186
186
|
Classifier: Programming Language :: Python :: 3
|
|
187
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
188
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
189
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
190
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
191
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
187
192
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
188
193
|
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
189
194
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
190
|
-
Requires-Python: >=3.
|
|
195
|
+
Requires-Python: >=3.11
|
|
191
196
|
Requires-Dist: casadi!=3.6.6,<3.9,>=3.6.3
|
|
192
197
|
Requires-Dist: defusedxml>=0.7.0
|
|
193
|
-
Requires-Dist: numpy>=1.
|
|
198
|
+
Requires-Dist: numpy>=1.23.2
|
|
194
199
|
Requires-Dist: pymoca==0.9.*,>=0.9.3
|
|
195
|
-
Requires-Dist: rtc-tools-channel-flow>=1.
|
|
200
|
+
Requires-Dist: rtc-tools-channel-flow>=1.4.0
|
|
196
201
|
Requires-Dist: rtc-tools-standard-library>=0.1.2
|
|
197
|
-
Requires-Dist: scipy>=1.
|
|
202
|
+
Requires-Dist: scipy>=1.9.2
|
|
198
203
|
Provides-Extra: all
|
|
199
|
-
Requires-Dist: netcdf4; extra == 'all'
|
|
204
|
+
Requires-Dist: netcdf4>=1.6.1; extra == 'all'
|
|
200
205
|
Provides-Extra: netcdf
|
|
201
|
-
Requires-Dist: netcdf4; extra == 'netcdf'
|
|
206
|
+
Requires-Dist: netcdf4>=1.6.1; extra == 'netcdf'
|
|
202
207
|
Description-Content-Type: text/markdown
|
|
203
208
|
|
|
204
209
|
<p align="center">
|
|
@@ -209,11 +214,14 @@ Description-Content-Type: text/markdown
|
|
|
209
214
|
[](https://dpcbuild.deltares.nl/buildConfiguration/RTCT_RtcTools2_RtcToolsFullModelTests)
|
|
210
215
|
[](https://sonarcloud.io/summary/new_code?id=rtc-tools_rtc-tools)
|
|
211
216
|
[](https://sonarcloud.io/summary/new_code?id=rtc-tools_rtc-tools)
|
|
212
|
-
[](https://pypi.org/project/rtc-tools/)
|
|
213
218
|
[](https://pepy.tech/project/rtc-tools)
|
|
219
|
+
[](https://pepy.tech/project/rtc-tools)
|
|
214
220
|
[](https://pypi.org/project/rtc-tools/)
|
|
215
221
|
[](https://www.gnu.org/licenses/lgpl-3.0)
|
|
216
222
|
[](https://insights.linuxfoundation.org/project/rtc-tools)
|
|
223
|
+
[](https://www.bestpractices.dev/projects/15480)
|
|
224
|
+
[](https://rtc-tools.readthedocs.io/en/stable/)
|
|
217
225
|
|
|
218
226
|
> **NOTE** The RTC-Tools repository has been migrated from GitLab to here;
|
|
219
227
|
see [Migration from GitLab](#migration-from-gitlab).
|
|
@@ -336,3 +344,7 @@ RTC-Tools is part of the LF Energy ecosystem and actively welcomes collaboration
|
|
|
336
344
|
## Acknowledgment
|
|
337
345
|
|
|
338
346
|
If you use RTC-Tools in your work, please acknowledge it in any resulting publications. You can do this by citing the RTC-Tools software and providing a link to our [GitHub repository](https://github.com/rtc-tools/rtc-tools).
|
|
347
|
+
|
|
348
|
+
## Code of Conduct
|
|
349
|
+
|
|
350
|
+
See [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
[](https://dpcbuild.deltares.nl/buildConfiguration/RTCT_RtcTools2_RtcToolsFullModelTests)
|
|
7
7
|
[](https://sonarcloud.io/summary/new_code?id=rtc-tools_rtc-tools)
|
|
8
8
|
[](https://sonarcloud.io/summary/new_code?id=rtc-tools_rtc-tools)
|
|
9
|
-
[](https://pypi.org/project/rtc-tools/)
|
|
10
10
|
[](https://pepy.tech/project/rtc-tools)
|
|
11
|
+
[](https://pepy.tech/project/rtc-tools)
|
|
11
12
|
[](https://pypi.org/project/rtc-tools/)
|
|
12
13
|
[](https://www.gnu.org/licenses/lgpl-3.0)
|
|
13
14
|
[](https://insights.linuxfoundation.org/project/rtc-tools)
|
|
15
|
+
[](https://www.bestpractices.dev/projects/15480)
|
|
16
|
+
[](https://rtc-tools.readthedocs.io/en/stable/)
|
|
14
17
|
|
|
15
18
|
> **NOTE** The RTC-Tools repository has been migrated from GitLab to here;
|
|
16
19
|
see [Migration from GitLab](#migration-from-gitlab).
|
|
@@ -133,3 +136,7 @@ RTC-Tools is part of the LF Energy ecosystem and actively welcomes collaboration
|
|
|
133
136
|
## Acknowledgment
|
|
134
137
|
|
|
135
138
|
If you use RTC-Tools in your work, please acknowledge it in any resulting publications. You can do this by citing the RTC-Tools software and providing a link to our [GitHub repository](https://github.com/rtc-tools/rtc-tools).
|
|
139
|
+
|
|
140
|
+
## Code of Conduct
|
|
141
|
+
|
|
142
|
+
See [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Debugging an Optimization Problem
|
|
2
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
This example will illustrate a few tools that can help debugging an optimization problem.
|
|
8
|
+
For example, it will demonstrate how to test an optimization problem by only solving
|
|
9
|
+
for a fixed number of time steps.
|
|
10
|
+
|
|
11
|
+
A Basic Optimization Problem
|
|
12
|
+
----------------------------
|
|
13
|
+
|
|
14
|
+
For this example, the model is kept very basic.
|
|
15
|
+
We consider a single reservoir with a few target and optimization goals.
|
|
16
|
+
The optimization problem is given below.
|
|
17
|
+
|
|
18
|
+
.. literalinclude:: ../../../examples/single_reservoir/src/single_reservoir.py
|
|
19
|
+
:language: python
|
|
20
|
+
:pyobject: SingleReservoir
|
|
21
|
+
|
|
22
|
+
Optimizing for a given number of time steps
|
|
23
|
+
-------------------------------------------
|
|
24
|
+
|
|
25
|
+
By overwriting the method ``times``, we can control the times for which the problem is optimized.
|
|
26
|
+
In this case, we optimize for all times
|
|
27
|
+
unless the class attribute ``only_check_initial_values`` is set to ``True``.
|
|
28
|
+
Optimizing for only the initial time can be useful
|
|
29
|
+
to check for infeasibilities due to incompatible initial conditions.
|
|
30
|
+
|
|
31
|
+
Exporting the problem as an LP file
|
|
32
|
+
-----------------------------------
|
|
33
|
+
|
|
34
|
+
A linear or mixed-integer linear problem can be written to an LP file, to inspect it or to
|
|
35
|
+
solve it with another solver (e.g. HiGHS or CPLEX)::
|
|
36
|
+
|
|
37
|
+
def export_options(self):
|
|
38
|
+
options = super().export_options()
|
|
39
|
+
options["export_lp"] = True
|
|
40
|
+
return options
|
|
41
|
+
|
|
42
|
+
The file is written to the output folder, e.g. ``SingleReservoir_20250101_120000.lp``. When goal
|
|
43
|
+
programming solves more than one priority, each priority gets its own file with a
|
|
44
|
+
``_priority_N`` suffix. Export requires an affine objective, affine constraints, and bounds and
|
|
45
|
+
constant terms an LP file can hold (no NaN, no lower bound of +inf, no upper bound of -inf, no
|
|
46
|
+
infinite constant). It raises a :exc:`ValueError` otherwise.
|
|
47
|
+
|
|
48
|
+
Rows with two infinite bounds are left out of the file. A row that reduces to a constant
|
|
49
|
+
outside its bounds (by more than 1e-9, or with a lower bound above its upper bound) is kept,
|
|
50
|
+
written against a variable ``__zero`` fixed to 0, so that an LP solver also finds the exported
|
|
51
|
+
problem infeasible.
|
{rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/doc/examples/optimization/pumped_hydropower_system.rst
RENAMED
|
@@ -61,7 +61,7 @@ In addition to elements, the input variables ``Inflow_Q``, ``PumpFlow``, ``Turbi
|
|
|
61
61
|
we want to view the power output and costs in the output file, we also define output
|
|
62
62
|
variables ``PumpPower``, ``TurbinePower``, ``V_LowerBasin``,``V_UpperBasin``, ``ReservoirPower``,
|
|
63
63
|
``TotalSystemPower``,``TotalGeneratingPower``, ``SystemGeneratingRevenue``, ``TotalSystemRevenue``,
|
|
64
|
-
``
|
|
64
|
+
``PumpCost``.
|
|
65
65
|
|
|
66
66
|
To maintain represent the behaviour of a reversible PHS pump/turbine unit, we input the Boolean
|
|
67
67
|
``Turbine_is_on`` as a way to ensure the PHS unit cannot be pumping and generating at the same time.
|
|
@@ -4,7 +4,7 @@ Getting Started
|
|
|
4
4
|
Installation
|
|
5
5
|
============
|
|
6
6
|
|
|
7
|
-
Python 3.
|
|
7
|
+
Python 3.11 or newer (up to 3.15) is recommended for running RTC-Tools.
|
|
8
8
|
|
|
9
9
|
For most users, the easiest way to install RTC-Tools using the `pip <https://pip.pypa.io/>`_ package manager.
|
|
10
10
|
|
|
@@ -4,5 +4,5 @@ Modelica models
|
|
|
4
4
|
To learn the basics of modelling with Modelica, please refer to the online book `Modelica by Example <https://mbe.modelica.university/>`_.
|
|
5
5
|
|
|
6
6
|
.. autoclass:: rtctools.optimization.modelica_mixin.ModelicaMixin
|
|
7
|
-
:members: compiler_options
|
|
7
|
+
:members: pymoca_model, compiler_options
|
|
8
8
|
:show-inheritance:
|
|
@@ -46,8 +46,8 @@ model Example
|
|
|
46
46
|
Deltares.ChannelFlow.Hydraulic.Structures.Pump LowerControlStructure annotation(Placement(visible = true, transformation(origin = {20, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
47
47
|
Deltares.ChannelFlow.Hydraulic.Structures.Pump UpperControlStructure annotation(Placement(visible = true, transformation(origin = {-32, 26}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
48
48
|
// Parameters
|
|
49
|
-
parameter Real theta;
|
|
50
|
-
parameter Real step_size;
|
|
49
|
+
parameter Real theta(start = 1.0); // Value driven by HomotopyMixin
|
|
50
|
+
parameter Real step_size(start = 0.0); // Value set in parameters()
|
|
51
51
|
// Inputs
|
|
52
52
|
input Real Inflow_Q(fixed = true) = Inflow.Q;
|
|
53
53
|
input Real UpperControlStructure_Q(fixed = false, min = 0., max = 4.) = UpperControlStructure.Q;
|
|
@@ -55,9 +55,9 @@ model Example
|
|
|
55
55
|
input Real DrinkingWaterExtractionPump_Q(fixed = false, min = 0., max = 2.) = DrinkingWaterExtractionPump.Q;
|
|
56
56
|
initial equation
|
|
57
57
|
// Steady state initialization
|
|
58
|
-
der(LowerChannel.Q) = 0;
|
|
59
|
-
der(MiddleChannel.Q) = 0;
|
|
60
|
-
der(UpperChannel.Q) = 0;
|
|
58
|
+
der(LowerChannel.Q) = fill(0.0, LowerChannel.n_level_nodes + 1);
|
|
59
|
+
der(MiddleChannel.Q) = fill(0.0, MiddleChannel.n_level_nodes + 1);
|
|
60
|
+
der(UpperChannel.Q) = fill(0.0, UpperChannel.n_level_nodes + 1);
|
|
61
61
|
equation
|
|
62
62
|
connect(DrinkingWaterExtractionPump.HQDown, DrinkingWaterPlant.HQ) annotation(Line(points = {{20, 26}, {38, 26}, {38, 36}, {38, 36}}, color = {0, 0, 255}));
|
|
63
63
|
connect(Inflow.HQ, UpperChannel.HQUp) annotation(Line(points = {{-88, 26}, {-70, 26}, {-70, 26}, {-70, 26}}, color = {0, 0, 255}));
|
|
@@ -26,8 +26,8 @@ model Example
|
|
|
26
26
|
// Inputs
|
|
27
27
|
input Real Inflow_Q(fixed=true) = Discharge.Q;
|
|
28
28
|
input Real Level_H(fixed=true) = Level.H;
|
|
29
|
-
parameter Real theta;
|
|
30
|
-
parameter Real step_size;
|
|
29
|
+
parameter Real theta(start = 1.0); // Value driven by HomotopyMixin
|
|
30
|
+
parameter Real step_size(start = 0.0); // Value set in parameters()
|
|
31
31
|
// Output Channel states
|
|
32
32
|
output Real Channel_Q_up = Discharge.Q;
|
|
33
33
|
output Real Channel_Q_dn = Level.HQ.Q;
|
|
@@ -54,8 +54,8 @@ model Example
|
|
|
54
54
|
output Modelica.Units.SI.VolumeFlowRate Q_in = Inflow_Q;
|
|
55
55
|
|
|
56
56
|
// Parameters
|
|
57
|
-
parameter Modelica.Units.SI.Duration step_size;
|
|
58
|
-
parameter Real theta;
|
|
57
|
+
parameter Modelica.Units.SI.Duration step_size(start = 0.0); // Value set in parameters()
|
|
58
|
+
parameter Real theta(start = 1.0); // Value driven by HomotopyMixin
|
|
59
59
|
equation
|
|
60
60
|
connect(dam_middle.HQDown, downstream.HQUp) annotation(Line(points = {{38, 0}, {50, 0}}, color = {0, 0, 255}));
|
|
61
61
|
connect(dam_middle.HQUp, middle.HQDown) annotation(Line(points = {{8, 0}, {22, 0}, {22, 0}, {22, 0}}, color = {0, 0, 255}));
|
|
@@ -64,7 +64,7 @@ equation
|
|
|
64
64
|
connect(Discharge.HQ, upstream.HQUp) annotation(Line(points = {{-82, 0}, {-68, 0}}, color = {0, 0, 255}));
|
|
65
65
|
connect(Level.HQ, downstream.HQDown) annotation(Line(points = {{66, 0}, {82, 0}, {82, 0}, {82, 0}}, color = {0, 0, 255}));
|
|
66
66
|
initial equation
|
|
67
|
-
downstream.Q[2:downstream.n_level_nodes + 1] = Inflow_Q;
|
|
68
|
-
middle.Q[2:middle.n_level_nodes + 1] = Inflow_Q;
|
|
69
|
-
upstream.Q[2:upstream.n_level_nodes + 1] = Inflow_Q;
|
|
67
|
+
downstream.Q[2:downstream.n_level_nodes + 1] = fill(Inflow_Q, downstream.n_level_nodes);
|
|
68
|
+
middle.Q[2:middle.n_level_nodes + 1] = fill(Inflow_Q, middle.n_level_nodes);
|
|
69
|
+
upstream.Q[2:upstream.n_level_nodes + 1] = fill(Inflow_Q, upstream.n_level_nodes);
|
|
70
70
|
end Example;
|
{rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/channel_wave_damping/model/ExampleOptimization.mo
RENAMED
|
@@ -2,4 +2,4 @@ model ExampleOptimization
|
|
|
2
2
|
extends Example;
|
|
3
3
|
input Modelica.Units.SI.VolumeFlowRate Q_dam_middle(fixed = false, min = 0.0, max = 1000.0, nominal = 100.0) = dam_middle.Q;
|
|
4
4
|
input Modelica.Units.SI.VolumeFlowRate Q_dam_upstream(fixed = false, min = 0.0, max = 1000.0, nominal = 100.0) = dam_upstream.Q;
|
|
5
|
-
end
|
|
5
|
+
end ExampleOptimization;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
model Example
|
|
2
|
-
parameter Integer delay_hours = 24
|
|
2
|
+
parameter Integer delay_hours = 24;
|
|
3
3
|
Deltares.ChannelFlow.SimpleRouting.BoundaryConditions.Inflow control_inflow annotation(
|
|
4
4
|
Placement(visible = true, transformation(origin = {-80, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
5
5
|
Deltares.ChannelFlow.SimpleRouting.BoundaryConditions.Inflow external_inflow annotation(
|
{rtc_tools-2.8.1 → rtc_tools-2.9.0a1}/examples/pumped_hydropower_system/model/PumpedStoragePlant.mo
RENAMED
|
@@ -30,7 +30,6 @@ model PumpedStoragePlant
|
|
|
30
30
|
output Real TotalGeneratingPower(min = 0.0);
|
|
31
31
|
output Real SystemGeneratingRevenue;
|
|
32
32
|
output Real TotalSystemRevenue;
|
|
33
|
-
output Real TotalSystemRevenueSum;
|
|
34
33
|
output Real PumpCost;
|
|
35
34
|
|
|
36
35
|
// Define Boolean to ensure pumped storage turbine and pump cannot be used simultaneously
|
|
@@ -62,7 +61,6 @@ equation
|
|
|
62
61
|
PumpCost = PumpPower * cost_perP;
|
|
63
62
|
SystemGeneratingRevenue = TotalGeneratingPower*cost_perP;
|
|
64
63
|
TotalSystemRevenue = SystemGeneratingRevenue-PumpCost;
|
|
65
|
-
TotalSystemRevenueSum = transpose(sum(TotalSystemRevenue));
|
|
66
64
|
|
|
67
65
|
// Connect elements
|
|
68
66
|
connect(Turbine.QOut, LowerBasin.QLateral[2]) annotation(
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
time,PumpCost,PumpFlow,PumpPower,ReservoirPower,ReservoirSpillFlow,ReservoirTurbineFlow,SystemGeneratingRevenue,TotalGeneratingPower,TotalSystemPower,TotalSystemRevenue,
|
|
2
|
-
2013-05-19 22:00:00,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,
|
|
3
|
-
2013-05-19 23:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,19000.000000,1000000.000000,1000000.000000,19000.000000,
|
|
4
|
-
2013-05-20 00:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,19000.000000,1000000.000000,1000000.000000,19000.000000,
|
|
5
|
-
2013-05-20 01:00:00,8927.100000,10.000000,686700.000000,1686700.000000,0.000000,78.153091,21927.100000,1686700.000000,1000000.000000,13000.000000,
|
|
6
|
-
2013-05-20 02:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,
|
|
7
|
-
2013-05-20 03:00:00,8352.788889,9.356666,642522.222222,1642522.222222,0.000000,76.106117,21352.788889,1642522.222222,1000000.000000,13000.000000,
|
|
8
|
-
2013-05-20 04:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
9
|
-
2013-05-20 05:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
10
|
-
2013-05-20 06:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
11
|
-
2013-05-20 07:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
12
|
-
2013-05-20 08:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
13
|
-
2013-05-20 09:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,
|
|
14
|
-
2013-05-20 10:00:00,8927.100000,10.000000,686700.000000,1686700.000000,0.000000,78.153091,21927.100000,1686700.000000,1000000.000000,13000.000000,
|
|
15
|
-
2013-05-20 11:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,
|
|
16
|
-
2013-05-20 12:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,
|
|
17
|
-
2013-05-20 13:00:00,8352.788889,9.356666,642522.222222,1642522.222222,0.000000,76.106117,21352.788889,1642522.222222,1000000.000000,13000.000000,
|
|
18
|
-
2013-05-20 14:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
19
|
-
2013-05-20 15:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
20
|
-
2013-05-20 16:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
21
|
-
2013-05-20 17:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
22
|
-
2013-05-20 18:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,
|
|
1
|
+
time,PumpCost,PumpFlow,PumpPower,ReservoirPower,ReservoirSpillFlow,ReservoirTurbineFlow,SystemGeneratingRevenue,TotalGeneratingPower,TotalSystemPower,TotalSystemRevenue,TurbineFlow,TurbinePower,V_LowerBasin,V_UpperBasin
|
|
2
|
+
2013-05-19 22:00:00,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,400000.000000,0.000000
|
|
3
|
+
2013-05-19 23:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,19000.000000,1000000.000000,1000000.000000,19000.000000,0.000000,0.000000,593194.328607,0.000000
|
|
4
|
+
2013-05-20 00:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,19000.000000,1000000.000000,1000000.000000,19000.000000,0.000000,0.000000,786388.657214,0.000000
|
|
5
|
+
2013-05-20 01:00:00,8927.100000,10.000000,686700.000000,1686700.000000,0.000000,78.153091,21927.100000,1686700.000000,1000000.000000,13000.000000,0.000000,0.000000,901037.531276,36000.000000
|
|
6
|
+
2013-05-20 02:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,0.000000,0.000000,1094231.859883,36000.000000
|
|
7
|
+
2013-05-20 03:00:00,8352.788889,9.356666,642522.222222,1642522.222222,0.000000,76.106117,21352.788889,1642522.222222,1000000.000000,13000.000000,0.000000,0.000000,1213933.833750,69683.995923
|
|
8
|
+
2013-05-20 04:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,1227870.632935,55747.196738
|
|
9
|
+
2013-05-20 05:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,1241807.432119,41810.397554
|
|
10
|
+
2013-05-20 06:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,1255744.231304,27873.598369
|
|
11
|
+
2013-05-20 07:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,1269681.030488,13936.799185
|
|
12
|
+
2013-05-20 08:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,1283617.829673,0.000000
|
|
13
|
+
2013-05-20 09:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,0.000000,0.000000,1476812.158280,0.000000
|
|
14
|
+
2013-05-20 10:00:00,8927.100000,10.000000,686700.000000,1686700.000000,0.000000,78.153091,21927.100000,1686700.000000,1000000.000000,13000.000000,0.000000,0.000000,1591461.032342,36000.000000
|
|
15
|
+
2013-05-20 11:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,0.000000,0.000000,1784655.360949,36000.000000
|
|
16
|
+
2013-05-20 12:00:00,0.000000,0.000000,0.000000,1000000.000000,0.000000,46.334909,13000.000000,1000000.000000,1000000.000000,13000.000000,0.000000,0.000000,1977849.689556,36000.000000
|
|
17
|
+
2013-05-20 13:00:00,8352.788889,9.356666,642522.222222,1642522.222222,0.000000,76.106117,21352.788889,1642522.222222,1000000.000000,13000.000000,0.000000,0.000000,2097551.663423,69683.995923
|
|
18
|
+
2013-05-20 14:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,2111488.462608,55747.196738
|
|
19
|
+
2013-05-20 15:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,2125425.261792,41810.397554
|
|
20
|
+
2013-05-20 16:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,2139362.060977,27873.598369
|
|
21
|
+
2013-05-20 17:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,2153298.860161,13936.799185
|
|
22
|
+
2013-05-20 18:00:00,0.000000,0.000000,0.000000,2158200.000000,0.000000,100.000000,47500.000000,2500000.000000,2500000.000000,47500.000000,3.871333,341800.000000,2167235.659346,0.000000
|
|
@@ -146,8 +146,7 @@ class PumpStorage(
|
|
|
146
146
|
def post(self):
|
|
147
147
|
super().post()
|
|
148
148
|
results = self.extract_results()
|
|
149
|
-
|
|
150
|
-
print("Total Revenue is " + str(results["TotalSystemRevenueSum"]))
|
|
149
|
+
print("Total Revenue is " + str(np.sum(results["TotalSystemRevenue"])))
|
|
151
150
|
|
|
152
151
|
|
|
153
152
|
# Run
|
|
@@ -4,7 +4,7 @@ model Example
|
|
|
4
4
|
Deltares.ChannelFlow.SimpleRouting.Storage.Storage storage(Q_release = P_control, V(start=storage_V_init, fixed=true, nominal=4e5)) annotation(Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
5
5
|
Deltares.ChannelFlow.SimpleRouting.BoundaryConditions.Terminal outfall annotation(Placement(visible = true, transformation(origin = {55, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
|
|
6
6
|
// Initial States
|
|
7
|
-
parameter Modelica.Units.SI.Volume storage_V_init;
|
|
7
|
+
parameter Modelica.Units.SI.Volume storage_V_init(start = 0.0); // Value set in parameters.csv
|
|
8
8
|
// Inputs
|
|
9
9
|
input Modelica.Units.SI.VolumeFlowRate P_control(fixed = true);
|
|
10
10
|
input Modelica.Units.SI.VolumeFlowRate Q_in(fixed = true);
|
|
@@ -7,10 +7,10 @@ model Example
|
|
|
7
7
|
// Inputs
|
|
8
8
|
input Real Inflow_Q(fixed = true) = Inflow.Q;
|
|
9
9
|
input Real Outflow_Q(fixed = true) = Outflow.Q;
|
|
10
|
-
input SI.Stress reach_1_stress_u(fixed = true);
|
|
11
|
-
input SI.Stress reach_1_stress_v(fixed = true);
|
|
12
|
-
parameter Real theta;
|
|
13
|
-
parameter Real step_size;
|
|
10
|
+
input Modelica.Units.SI.Stress reach_1_stress_u(fixed = true);
|
|
11
|
+
input Modelica.Units.SI.Stress reach_1_stress_v(fixed = true);
|
|
12
|
+
parameter Real theta(start = 1.0); // Value driven by HomotopyMixin
|
|
13
|
+
parameter Real step_size(start = 0.0); // Value set in parameters()
|
|
14
14
|
// Output Channel states
|
|
15
15
|
output Real QChannel_Q_up = Inflow.Q;
|
|
16
16
|
output Real QChannel_Q_dn = Outflow.Q;
|