flextool 4.7.1__tar.gz → 4.7.3__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.
- {flextool-4.7.1/flextool.egg-info → flextool-4.7.3}/PKG-INFO +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/docs/dev/architecture.md +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/docs/dev/engine.md +57 -33
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/performance.md +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/thermal_chp.md +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/connections.md +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/reserves.md +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/units.md +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/docs/results.md +4 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_solver_config_source.py +5 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/docs_store.py +1 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_entity.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/formulation.py +94 -15
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/__init__.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_field_seeds.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_layer2_types.py +63 -63
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_report.py +9 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_axis_enums.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_param_shapes.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_piecewise_curve.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_config.py +3 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_state.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_spinedb_reader.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_timeline.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_balance_terms.py +5 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_capacity.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_coarse_flows.py +7 -7
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_commodity_ladder.py +5 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_common.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_cumulative_invest.py +6 -6
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_dc_power_flow.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_delay.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_exact.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_extend.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_group_slack.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_lead_time.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_non_anticipativity.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_online.py +57 -100
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_pdt_join.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_period_rows.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_reserve.py +8 -15
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_retire_built.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_self_discharge.py +7 -7
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/_unit_floors.py +1 -1
- flextool-4.7.3/flextool/engine/model/core/__init__.py +106 -0
- flextool-4.7.3/flextool/engine/model/core/_build.py +194 -0
- flextool-4.7.3/flextool/engine/model/core/_co2.py +350 -0
- flextool-4.7.3/flextool/engine/model/core/_context.py +376 -0
- flextool-4.7.3/flextool/engine/model/core/_conversion.py +364 -0
- flextool-4.7.3/flextool/engine/model/core/_flows.py +509 -0
- flextool-4.7.3/flextool/engine/model/core/_invest.py +277 -0
- flextool-4.7.3/flextool/engine/model/core/_node_balance.py +609 -0
- flextool-4.7.3/flextool/engine/model/core/_objective.py +620 -0
- flextool-4.7.3/flextool/engine/model/core/_prepare.py +635 -0
- flextool-4.7.3/flextool/engine/model/core/_profiles.py +85 -0
- flextool-4.7.3/flextool/engine/model/core/_ramp.py +760 -0
- flextool-4.7.3/flextool/engine/model/core/_rp_storage.py +651 -0
- flextool-4.7.3/flextool/engine/model/core/_storage_links.py +223 -0
- flextool-4.7.3/flextool/engine/model/core/_storage_state.py +1038 -0
- flextool-4.7.3/flextool/engine/model/core/_user_constraints.py +661 -0
- flextool-4.7.3/flextool/engine/model/core/_variables.py +279 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_coarse_flows.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_dump_csvs.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_prices.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_writer.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_co2_carry.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_keys.py +4 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_reduce_detail.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_solve_context.py +8 -8
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_step_relations.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_arc_unions.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_chain_params.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_co2_accumulators.py +8 -8
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_energy_margin_adder.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_flowgroup_accumulators.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_leaf_sets.py +3 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_mid_sets.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_per_solve.py +3 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_period_params.py +3 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_solve_writers.py +1 -1
- flextool-4.7.3/flextool/engine/preprocess/flex_data/__init__.py +64 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_coarse.py +605 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_container.py +871 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_db_overrides.py +453 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff.py +1037 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_commodity.py +308 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_inputs.py +351 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_handoff_storage.py +314 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load.py +1160 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_co2.py +399 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_features.py +942 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_ramp_online.py +540 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_storage.py +867 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_load_topology.py +366 -0
- flextool-4.7.3/flextool/engine/preprocess/flex_data/_readers.py +395 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_arithmetic.py +12 -15
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_branch.py +8 -8
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_coarse.py +2 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cohorts.py +6 -4
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/__init__.py +274 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_active_steps.py +532 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_arc_capacity.py +835 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_delay.py +261 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_dtttdt.py +627 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_existing_capacity.py +475 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_handoff_state.py +270 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_inflation.py +529 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_invest_apply.py +1221 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_invest_sets.py +486 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_ladder.py +365 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_lookbacks.py +171 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_periods.py +460 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_process_flows.py +785 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_process_method.py +718 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_reserves.py +228 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_scaling_inflow.py +297 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_scope.py +268 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_storage.py +678 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_time.py +986 -0
- flextool-4.7.3/flextool/engine/preprocess/params/_derived/_unitsize.py +218 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_direct.py +9 -9
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_discount.py +10 -10
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_existing.py +7 -9
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_lifetime_costs.py +15 -11
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_mintime.py +57 -16
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_npv.py +5 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_piecewise.py +14 -13
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_profiles.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_projection.py +13 -13
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_walks.py +2 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_acceptance.py +23 -9
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_benders.py +5 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_carry_routing.py +2 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_co2_total_scope.py +3 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_handoff.py +7 -5
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_objective_options.py +1 -1
- flextool-4.7.3/flextool/engine/solve/_orchestration/__init__.py +75 -0
- flextool-4.7.3/flextool/engine/solve/_orchestration/_autoscale_hooks.py +680 -0
- flextool-4.7.1/flextool/engine/solve/_orchestration.py → flextool-4.7.3/flextool/engine/solve/_orchestration/_cascade.py +90 -3151
- flextool-4.7.3/flextool/engine/solve/_orchestration/_entry.py +645 -0
- flextool-4.7.3/flextool/engine/solve/_orchestration/_guards.py +515 -0
- flextool-4.7.3/flextool/engine/solve/_orchestration/_highs_options.py +413 -0
- flextool-4.7.3/flextool/engine/solve/_orchestration/_memory.py +647 -0
- flextool-4.7.3/flextool/engine/solve/_orchestration/_steps.py +254 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realization.py +11 -8
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realization_tail.py +4 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_realized_overlap.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_recursive_solve.py +1 -1
- flextool-4.7.3/flextool/engine/solve/_region_filter/__init__.py +77 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_arcs.py +283 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_checks.py +374 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_frames.py +61 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_master_network.py +643 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_master_side.py +324 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_region_data.py +769 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_regions.py +199 -0
- flextool-4.7.3/flextool/engine/solve/_region_filter/_split.py +337 -0
- flextool-4.7.3/flextool/engine/solve/_run_model/__init__.py +50 -0
- flextool-4.7.1/flextool/engine/solve/_run_model.py → flextool-4.7.3/flextool/engine/solve/_run_model/_native_run_model.py +43 -1448
- flextool-4.7.3/flextool/engine/solve/_run_model/_nested_storage.py +346 -0
- flextool-4.7.3/flextool/engine/solve/_run_model/_rolling_storage.py +467 -0
- flextool-4.7.3/flextool/engine/solve/_run_model/_rp_methods.py +400 -0
- flextool-4.7.3/flextool/engine/solve/_run_model/_run_timelines.py +149 -0
- flextool-4.7.3/flextool/engine/solve/_run_model/_storage_frames.py +111 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_dispatch.py +3 -3
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_subprocess_solve.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_warm.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_commodity_ladder_sets.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_method_constants.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_process_method.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_validators.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_inmemory_helpers.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_ramp_inputs.py +30 -7
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_capacity_flows.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_costs.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_piecewise.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_ramp_envelope.py +26 -10
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_storage_vre.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/drop_levels.py +2 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_ancillary.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_highs_solution.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_parameters.py +6 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_sets.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_engine_specs.py +3 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/flextool_axis_contract.json +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v56_methods.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v56_renames.py +4 -4
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_history.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3/flextool.egg-info}/PKG-INFO +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/SOURCES.txt +78 -6
- {flextool-4.7.1 → flextool-4.7.3}/pyproject.toml +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_commodity_ladder_rolling.py +2 -2
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_csv_dump_roundtrip.py +1 -1
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_invariant_guards.py +20 -9
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_min_load_rolling.py +2 -2
- flextool-4.7.3/tests/test_related_tests.py +51 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_minuptime.py +1 -1
- flextool-4.7.3/tests/test_split_check.py +506 -0
- flextool-4.7.1/flextool/engine/model/core.py +0 -7391
- flextool-4.7.1/flextool/engine/preprocess/flex_data.py +0 -8407
- flextool-4.7.1/flextool/engine/preprocess/params/_derived.py +0 -9944
- flextool-4.7.1/flextool/engine/solve/_region_filter.py +0 -2935
- flextool-4.7.1/tests/test_split_check.py +0 -182
- {flextool-4.7.1 → flextool-4.7.3}/LICENSE.txt +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/MANIFEST.in +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/README.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/_flextool_build.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/advanced_concepts.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/ai_assistant.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/dev/assistant.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/dev/slack_convention.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/env_vars.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/excel_interface.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/flextool_gui_interface.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/basics.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/demand_response.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/emissions.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/index.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/investment.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/outputs.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/solve_sequences.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/stochastic_examples.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/stochastics.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/how_to/storage_hydro.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/index.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/install_gui.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/install_toolbox.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/interface_overview.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/limitations.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reading_results.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/commodities.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/entities_and_time.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/flow_groups.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/groups.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/index.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/nodes.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/parameter_groups.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/reference/user_constraints.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/copt.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/cplex.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/gurobi.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/highs.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/index.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/option_trust_internals.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/solvers/xpress.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/spine_database.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/spine_toolbox.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/terminal_workflow.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/docs/tutorial.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_allocator.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_child_python.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_file_lock.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_local_solver_settings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_mem_sampler.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_process_tree.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_resources.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_safe_text.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_solver_option_rules.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/_thread_budget.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/_files.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/_common.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/anthropic_messages.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/backends/openai_chat.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/budget.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/caps.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/chat_cli.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/cli.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/context.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/endpoint.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/env_knobs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/errors.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_notes.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_schema.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_units.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/inputs/_values.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/keys.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_adapter.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_errors.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/llm_retry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/mcp_server.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_check.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_facts.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_list_cache.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/model_versions.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/net.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/pacing.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/placeholders.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/probes.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/project.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/prompt.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/providers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/redact.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/registry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_catalog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_overview.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_query.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_runs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/results/_slacks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/runtime_context.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/session.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/settings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/store.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/textsearch.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/thoughts.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tiers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/diagnostics.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/discovery.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/explain.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/inputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/orientation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/tools/results.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/unit_wording.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/assistant/usage.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/__main__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_cli.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_db_alt.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_final_outputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_guard.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_loop.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_readers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_report.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_sizing.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_solve.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/calibrate/_solve_status.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/_console.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/_timing.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_execute_flextool_workflow.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_export_to_tabular.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_freeze_database.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_import_sensitivities.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_migrate_database.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_open_results_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_project_package.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_matpower.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_old_flextool.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_self_describing_tabular_input.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_read_tabular_input.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_repair_value_list.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_run_flextool.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_scenario_results.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_solve_mps.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_time_runs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_trust_workspace.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_update_flextool.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/cli/cmd_write_outputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/common_utils/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/common_utils/plot_mem_shape.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/console_markers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/region_decomposition.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/decomposition/region_filter.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/__main__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/catalogue.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/index.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/parameters.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/scope.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/docs_build/warnings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_behaviour_changes.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_meta.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_seed.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_stamp.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/_topology.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/load.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/_csv_reload/offline_outputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_config.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_guard.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_layer2.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/autoscale/_quantity_types.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_constants.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_db_loader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_db_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_inmemory_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_input_source.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_lifetime_roles.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_solve_step_aggregation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/input/_timeline_rules.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/model/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_benders_slice.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_capacity_margin.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_cohort_capacity.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_horizon_dump.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_parquet_bundle.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/output/_reserve_report.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_annuity.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_co2_methods.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_dump_stamp.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_flex_data_provider.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_input_writer.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_invest_seeds.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_io.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_provider_translators.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_reserve_methods.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/_stochastic_detect.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_base_steps.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_blocks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_calc_params.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_capacity_margin_peak.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_dispatchers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_energy_margin.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_inflow_scaling.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_inflow_scaling_checks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_lp_scaling.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_pdt_lookup.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_pdt_params.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_period_calc.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_reserve_sets.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_solve_time.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/emit/_vectorize.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_block.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_block_layout.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cohort_handoff.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_cost_lines.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_existing_salvage.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_extend.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_fixed_costs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_lifetime_inputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_per_solve_sets.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_period_values.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_ramp_links.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_report_lines.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_built.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_existing.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_retire_settlement.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_run_calendar.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/preprocess/params/_run_costs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_benders_final.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_determinism.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_base.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_catalogue.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_solver_outcome.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/_stochastic.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/chain.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/copt.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/cplex.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/gurobi.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/highs.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine/solve/solver_catalogue/xpress.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/engine_polars/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/env_check.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/db_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/excel_writer.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/export_settings.yaml +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/export_to_excel.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/formatting.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/index_names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/export_to_tabular/sheet_config.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/__main__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/_menus.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/chat_tab.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/chat_window.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/entry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/fonts.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/gate.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/geometry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/gui_state.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/markdown_stream.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/notices.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/settings_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/strings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/transcript.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/assistant/worker.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/calibrate_commands.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/calibrate_jobs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/check_tree.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/cli_format.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/config_parser.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/data_models.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/db_editor_integration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/db_version_check.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/_modal_base.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/add_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/calibrate_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/file_picker.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/group_picker.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/local_solver_settings_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/message_box.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/message_list_window.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/migration_consent_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/migration_progress_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/plot_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/plot_settings_picker.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/project_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/project_package_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/dialogs/update_dialog.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/downsampling.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/error_handling.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/execution_manager.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/execution_window.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/hover_tooltip.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/input_sources.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/log_view.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/main_window.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/message_sources.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/messages.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/network_graph.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/output_actions.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/output_log_window.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/platform_utils.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_cache.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_canvas.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/plot_config_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/project_utils.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/result_viewer.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/scenario_key.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/scenario_lists.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/settings_io.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/solve_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/tree_reorder.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/gui/ui_metrics.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_commodity_ladder.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_dc_power_flow.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_piecewise.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/input_derivation/_specs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/lean_parquet.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/_special.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/build_model.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/encoding.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/model_builder/profiles.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/axis_helpers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/color_template.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/config.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/format_helpers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/legend_helpers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/orchestrator.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/perf.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plan.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_bars.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_bars_detail.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/plot_lines.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/shared_manifest.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/subplot_helpers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/plot_outputs/unit_labels.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/import_old_excel_input.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_matpower.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_old_flextool.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_self_describing_excel.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/read_tabular_with_specification.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_old_flextool_to_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_self_describing_to_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_inputs/write_to_input_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_annualize.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_csv_sidecars.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_excel_writer.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_fan_labels.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_output_meta.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_sheet_names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_timeline_breaks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/_unit_context.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_connections.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_group_flows.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/calc_slacks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/handoff_writers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_capacity.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_costs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_flowgroup.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_flows.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_group.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/out_node.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/persist_realized_slice.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/process_results.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/read_variables.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/reduced_cells.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/solve_order.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/spinedb_replay.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/union_realized_slice.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/write_outputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/process_outputs/write_spinedb.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/project_package.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/clustering.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/force_include.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload_inputs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/netload_iterate.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/preprocess.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/scenario_stack.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/representative_periods/weights.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_options.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_owner.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_status.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_record/_tee.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_behaviour_specs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/_input_specs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/run_warnings/registry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/safe_names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/config_builder.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/constants.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/data_models.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/db_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_data.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_mappings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/dispatch_plots.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/input_entity_colors.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/orchestrator.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/plan_union.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/plot_settings_seed.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/scenario_comparison/ramp_plots.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/AXIS_CONTRACT.md +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_aggregate_output.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_connections.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_demand.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_demand_response.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_hydro_reservoir_with_pump.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_non_sync_and_curtailment.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_ramp_and_start_up.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/howto_stochastics.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/templates_examples.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/canonical_databases/templates_time_settings_only.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/comparison_settings_template.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/default_plot_settings.yaml +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/default_plots.yaml +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/flextool_axis_contract.schema.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/old_flextool_import_template.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/output_info_template.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/output_settings_template.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_constant_default.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_default_optional_output.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_default_value.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_drop_down.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_lifetime_method.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_optional_outputs.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_output_node_flows.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_results_master.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_rolling_start_remove.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_rolling_window.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_storage_binding_defaults.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_v2.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/pre_v26/flextool_template_v25.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/spinedb_results_schema.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/schemas/spinedb_schema.json +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/copt.opt.template +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/cplex.opt.template +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/gurobi.opt.template +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/highs.opt.template +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/solver_config/xpress.opt.template +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/_axis_enums.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/spinedb_backend/_backend.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/sqlite_url.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/timeline_pieces.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/units_of_measure.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/bundle_install.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/canonical_databases.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_handle.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/__init__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/__main__.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/common.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/head.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/runner.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v01_v25.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v26_v43.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v44_v49.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v50_v55.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v57_v69.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v70_v76.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v77.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v78.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v79.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v80.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v81.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v82.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v83.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/db_migration/v84_branching.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/ensure_settings_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/export_database.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/extend_tests_fixture.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/fixture_schema.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/frozen.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/generate_canonical.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/initialize_database.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/install_info.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/list_default_repair.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/list_default_restore.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/migrate_before_run.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/migration_backup.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/self_update.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/sync_master_json_template.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/test_fixtures.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_answers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_archive.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_repair.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_suspects.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/update_flextool/value_list_write.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool/user_dirs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/dependency_links.txt +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/entry_points.txt +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/requires.txt +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool.egg-info/top_level.txt +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool_assistant_entry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/flextool_run_supervisor.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/setup.cfg +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_bar_layout.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_bar_sub_pixel_labels.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_blocks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_branch_weights.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_child_python_safe_path.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_child_run_argv.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_ci_shard.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_color_template.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_excel.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_project_root.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_comparison_results_registry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_complete_period_share_reduction.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_connection_node_warnings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_console_run_tool.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_cost_aggregation_semantics.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_cost_breakdown_by_entity.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dc_power_flow.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dependency_caps.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_consumer_and_connection_signs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_multi_period.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_node_debug_and_tree.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_order_specials.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_dispatch_scenario_tag.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_ensure_settings_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_entity_unitsize_invariant.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_entity_universe_carrier.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_env_check.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_env_knob_registry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_excel_text_cells.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_execution_log_lint.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_export_to_tabular.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_export_workbook_layout.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_extend_tests_fixture.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_flowgroup_indicators.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_force_include.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_group_output_warnings.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_handoff_writers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_input_entity_colors.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_lean_parquet.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_lh2_three_region.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_model_builder_invest.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_model_builder_special_functions.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_non_anticipativity.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_old_flextool_importer_schema_drift.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_open_results_db.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_column_metadata.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_csv_names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_metadata_renderers.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_output_work_folder_isolation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_parameter_group_coverage.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_period_share_of_year_output.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_piecewise_validation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plan_union.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_draw_order.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_gaps.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_pipeline.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_plan_chunk_reconstruction.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_plan_time_labels_roundtrip.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_plot_settings_seed.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_project_package_cli.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_ramp_histogram.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_read_highs_solution.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_recourse_cost_reconciliation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_regional_filter.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_representative_periods.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_carry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rolling_online_mintime_carry.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_alternative_name.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_force_include_wiring.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_rp_solves_filter.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_run_options.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_safe_names.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_safe_text.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenario_colors.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenario_stack.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_scenarios.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_self_describing_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_shared_axis_manifest.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_simple_bar_entity_color.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_solve_config.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_solve_reader.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_specification_excel_import.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_sqlite_url.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_stochastic_co2_total_price.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_stream_concat_temp_cleanup.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_support_load.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_synthesize_invest_dual.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_thread_budget.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_time_runs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_timeline_breaks.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_timings_csv.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_toolbox_specs.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_unidirectional_connection.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_unit_online_dt_columns.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_units_of_measure.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_units_of_measure_validators.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_user_dirs_isolation.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v52_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v63_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v64_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v65_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v66_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v67_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v68_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v69_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_v70_migration.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_workdir_empty_default.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_startup_input_round_trip.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_v77_round_trip.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_xlsx_workflow.py +0 -0
- {flextool-4.7.1 → flextool-4.7.3}/tests/test_years_represented.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flextool
|
|
3
|
-
Version: 4.7.
|
|
3
|
+
Version: 4.7.3
|
|
4
4
|
Summary: IRENA FlexTool is an energy and power systems model for understanding the role of variable power generation in future energy systems.
|
|
5
5
|
Author: IRENA FlexTool contributors
|
|
6
6
|
License: © International Renewable Energy Agency 2018-2022
|
|
@@ -10,7 +10,7 @@ emitters, solve orchestration, handoff) are in [engine.md](engine.md).
|
|
|
10
10
|
|---|---|
|
|
11
11
|
| Orientation: data flow, packages | [Top-level data flow](#top-level-data-flow), [Repository layout](#repository-layout), [Key architectural patterns](#key-architectural-patterns) |
|
|
12
12
|
| Add a model parameter | [Parameter shapes](#parameter-shapes-dt-broadcasting), [Solve-step aggregation](#solve-step-aggregation-new_stepduration-of-a-solve), [autoscale registry](#layers-bottom-up), engine [Where to start when…](engine.md#where-to-start-when) |
|
|
13
|
-
| Add a constraint / variable | engine [LP build](engine.md#lp-build-
|
|
13
|
+
| Add a constraint / variable | engine [LP build](engine.md#lp-build-modelcore-and-the-feature-modules), [Equation headers](engine.md#equation-headers), [autoscale registry](#layers-bottom-up) |
|
|
14
14
|
| Change preprocess emit | engine [Emitters](engine.md#emitters), [Vectorized per-roll emit](engine.md#vectorized-per-roll-emit) |
|
|
15
15
|
| Change solve orchestration / rolling / stochastic handoff | engine [Solve modes](engine.md#solve-modes), [Solve-to-solve handoff](engine.md#solve-to-solve-handoff), [Stochastic branches](engine.md#stochastic-branches) |
|
|
16
16
|
| Schema change & migration | [update_flextool](#flextoolupdate_flextool-migration-and-updates), CONTRIBUTING.md "Updating the Data Structure" |
|
|
@@ -475,7 +475,7 @@ reaching the generic broadcast raises.
|
|
|
475
475
|
|
|
476
476
|
##### Silent-default `"x"` index — readers outside the resolver
|
|
477
477
|
|
|
478
|
-
Not every DB read goes through `resolve_param_shape`. The **per-entity cascades** in `_derived
|
|
478
|
+
Not every DB read goes through `resolve_param_shape`. The **per-entity cascades** in `params/_derived/` /
|
|
479
479
|
`_existing.py` / `_lifetime_inputs.py` read raw entity params (`source.parameter(...)`) and must detect the period
|
|
480
480
|
axis themselves. The failure mode is the resolver's: spinedb_api's default `index_name` is the literal string
|
|
481
481
|
`"x"` (real 2-D maps carry `index_name='x'`, see `_spinedb_reader._discover_index_cols`), so an
|
|
@@ -680,7 +680,7 @@ CI-enforced verify chain (`tests.yml::template-check`):
|
|
|
680
680
|
group and prepare sub-problems for the Benders solve mode (the filter-only
|
|
681
681
|
`--region` CLI entry point that materialises one region's standalone input
|
|
682
682
|
directory). The in-engine slicer used by the live Benders driver lives at
|
|
683
|
-
`engine/solve/_region_filter.py
|
|
683
|
+
`engine/solve/_region_filter/` (map in its `__init__.py`); the master + cut loop is in
|
|
684
684
|
`engine/solve/_benders.py`.
|
|
685
685
|
|
|
686
686
|
### `flextool/model_builder/` and `flextool/representative_periods/`
|
|
@@ -968,7 +968,7 @@ changes the optimum. User-facing guide (modes, the guard's thresholds and messag
|
|
|
968
968
|
quantity type of every variable (`VARIABLE_FAMILIES`), constraint (`CONSTRAINT_FAMILIES` via `lookup_cstr`) and
|
|
969
969
|
parameter (`PARAMETER_TYPES`) in `_layer2_types.py` / `_quantity_types.py`. These registries refuse to default
|
|
970
970
|
— an unregistered name raises `KeyError` in `bucket_coefficients`. That `KeyError` is **caught** in
|
|
971
|
-
`_orchestration._autoscale_apply_layer2_pre_solve` and the solve silently reverts to an **un-scaled LP**
|
|
971
|
+
`_orchestration._autoscale_hooks._autoscale_apply_layer2_pre_solve` and the solve silently reverts to an **un-scaled LP**
|
|
972
972
|
("autoscale Layer 2 apply failed … reverting"), so a missing registration does not crash — it quietly disables
|
|
973
973
|
autoscaling. So: every new `add_var(...)` / `add_cstr(...)` literal and every new schema parameter MUST get a
|
|
974
974
|
registry entry (flags / `yes_no` gates → `DIMENSIONLESS`). `lookup_cstr` resolves dynamic (f-string)
|
|
@@ -13,7 +13,7 @@ cross-cutting invariants are in [architecture.md](architecture.md).
|
|
|
13
13
|
| Task | Sections |
|
|
14
14
|
|---|---|
|
|
15
15
|
| Add a model parameter | [Where to start when…](#where-to-start-when), architecture [Parameter shapes](architecture.md#parameter-shapes-dt-broadcasting), [Solve-step aggregation](architecture.md#solve-step-aggregation-new_stepduration-of-a-solve), [autoscale registry](architecture.md#layers-bottom-up) |
|
|
16
|
-
| Add a constraint / variable / objective term | [LP build](#lp-build-
|
|
16
|
+
| Add a constraint / variable / objective term | [LP build](#lp-build-modelcore-and-the-feature-modules), [Feature flags](#feature-flags-and-required-fields), [Equation headers](#equation-headers) |
|
|
17
17
|
| Add an optional model feature | [Where to start when…](#where-to-start-when), [Feature flags](#feature-flags-and-required-fields) |
|
|
18
18
|
| Change a preprocess emit / derive | [Emitters](#emitters), [Vectorized per-roll emit](#vectorized-per-roll-emit), [FlexDataProvider](#flexdataprovider-and-override-translator) |
|
|
19
19
|
| Change solve orchestration, warm start, Benders | [Per-solve pipeline](#per-solve-pipeline), [Solve modes](#solve-modes) |
|
|
@@ -67,7 +67,7 @@ The steps, with their modules, are listed in `flextool/engine/README.md`
|
|
|
67
67
|
|
|
68
68
|
`solve.reduce_unit_detail_method` / `reduce_system_detail_method` (user docs: entities_and_time.md "Leaving out
|
|
69
69
|
detail in a solve") are applied in one place: `preprocess._reduce_detail.apply_reduce_detail(d, unit, system)`,
|
|
70
|
-
called by the cascade right after `load_flextool` for every sub-solve (`_orchestration._drive_cascade`). Every
|
|
70
|
+
called by the cascade right after `load_flextool` for every sub-solve (`_orchestration._cascade._drive_cascade`). Every
|
|
71
71
|
consumer after it reads the reduced data: the online / ramp carry check (`check_online_ramp_carry`, outside
|
|
72
72
|
`load_flextool` so that it sees the reduced online set), the realization checks, the Benders split, the cold and
|
|
73
73
|
warm build, the handoff and the per-roll outputs. The per-roll emit and the input derivation are not changed.
|
|
@@ -131,10 +131,14 @@ Which `has_*` flags each level turns off is listed under [Feature flags](#featur
|
|
|
131
131
|
|
|
132
132
|
## FlexData — the central data carrier
|
|
133
133
|
|
|
134
|
-
`FlexData` (`preprocess/flex_data.py`) is a `@dataclass` of about 400
|
|
134
|
+
`FlexData` (`preprocess/flex_data/_container.py`) is a `@dataclass` of about 400
|
|
135
135
|
fields. Nine are positional and always present (the time / weighting / node
|
|
136
136
|
floor); every other field defaults to `None` and is filled in only when
|
|
137
|
-
the scenario exercises the corresponding feature.
|
|
137
|
+
the scenario exercises the corresponding feature. The package
|
|
138
|
+
`preprocess/flex_data/` re-exports the public names; its modules are the
|
|
139
|
+
container, the shared readers (`_readers`), the feature loaders (`_load_*`,
|
|
140
|
+
`_coarse`), `load_flextool` (`_load`), the DB-direct passes (`_db_overrides`)
|
|
141
|
+
and `build_handoff_from_solution` with its helpers (`_handoff*`).
|
|
138
142
|
|
|
139
143
|
The naming convention is documented on the class:
|
|
140
144
|
|
|
@@ -183,7 +187,7 @@ or stale CSVs in a reused work folder cannot change a run (Rule 4 of
|
|
|
183
187
|
provider from them first; architecture.md
|
|
184
188
|
[CSV dump](architecture.md#csv-dump-supported-and-csv-reload-unsupported)).
|
|
185
189
|
|
|
186
|
-
## LP build: `model/core
|
|
190
|
+
## LP build: `model/core/` and the feature modules
|
|
187
191
|
|
|
188
192
|
`build_flextool(m, d)` builds the LP into the `polar_high.Problem` `m`
|
|
189
193
|
from the `FlexData` `d`. Its body is a table of contents: a list of
|
|
@@ -209,16 +213,22 @@ few shared expressions):
|
|
|
209
213
|
|
|
210
214
|
Every family function starts with an early-return guard on its flag
|
|
211
215
|
(`if not b.has_storage: return`), so a feature whose data is empty emits
|
|
212
|
-
nothing. The `model/core.py`
|
|
216
|
+
nothing. The `model/core/__init__.py` docstring is the map: every variable with
|
|
213
217
|
its dims and unit, and every equation family in emit order with the
|
|
214
218
|
module it lives in. Each row, objective term and variable carries an
|
|
215
219
|
`EQ.` / `OBJ.` / `VAR.` header with its formula, so
|
|
216
220
|
`grep -rn "EQ. ─── maxFlow" flextool/engine` finds an equation.
|
|
217
221
|
|
|
218
|
-
**What lives where.** `model/core
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
**What lives where.** The package `model/core/` holds the core model that
|
|
223
|
+
every run uses, one module per equation family: `_prepare` (flags, data
|
|
224
|
+
checks, index sets), `_variables` (variables and shared expressions),
|
|
225
|
+
`_rp_storage`, `_node_balance`, `_flows` (maxFlow, maxOutputSum),
|
|
226
|
+
`_ramp`, `_invest` (investment maxima), `_conversion`, `_co2`,
|
|
227
|
+
`_user_constraints`, `_storage_state`, `_profiles` and `_objective`;
|
|
228
|
+
`_storage_links` holds the storage helpers several of them read,
|
|
229
|
+
`_context` the `_Build` context and the required-field tuples, `_build`
|
|
230
|
+
the table of contents. `core/__init__.py` re-exports the public names
|
|
231
|
+
only: code that needs a private helper imports it from its module. An optional feature that brings its own variables or rows
|
|
222
232
|
lives in its own module, exposing the parts of the interface it needs —
|
|
223
233
|
`add_variables(b)`, `add_constraints(b)`, `objective_terms(b)`:
|
|
224
234
|
`_online` (unit commitment), `_unit_floors` (minimum load and
|
|
@@ -242,7 +252,7 @@ degenerate models. Check the effect with `tools/lp_snapshot.py`
|
|
|
242
252
|
|
|
243
253
|
`_prepare` sets one `has_*` flag per feature on the `_Build` context from
|
|
244
254
|
its switch field on `FlexData`. The data each feature needs is a
|
|
245
|
-
module-level tuple
|
|
255
|
+
module-level tuple in `model/core/_context.py`:
|
|
246
256
|
|
|
247
257
|
```python
|
|
248
258
|
ALWAYS = ("dt", "nodeBalance",
|
|
@@ -347,7 +357,7 @@ grammar; `tests/docs/test_header_grammar.py` checks it):
|
|
|
347
357
|
- **One header per family.** A generic row helper carries no header; its
|
|
348
358
|
callers do (`ROW_HELPERS` in the test: `_coarse_flows.add_cstr` /
|
|
349
359
|
`add_twin` / `add_row_rule_cstr`, `_lead_time.period_limit`,
|
|
350
|
-
`core._ramp_family`, `_cumulative_invest._group_period_limit_online`,
|
|
360
|
+
`core._ramp._ramp_family`, `_cumulative_invest._group_period_limit_online`,
|
|
351
361
|
`_online._add_max_input_flow_online`).
|
|
352
362
|
- **Ratchets** (`tests/docs/test_header_grammar.py`): every `add_cstr` /
|
|
353
363
|
`add_var` in `engine/model/` has a header earlier in its function or sits
|
|
@@ -513,7 +523,7 @@ heat rate) is checked before the solve, so the curve is the upper envelope of it
|
|
|
513
523
|
One-input, one-output multi-line units (`process_piecewise_remap`) keep their input-side items on the output
|
|
514
524
|
(`_projection.single_input_curve_arc_remap`); reserves, operating cost, start-up input, commodity / CO2,
|
|
515
525
|
flowGroup membership and inertia stay on the input.
|
|
516
|
-
- **Model** (`core._eq_conversion_piecewise`, rows `conversion_piecewise` and the coarse twin): weighted input ≥
|
|
526
|
+
- **Model** (`core._conversion._eq_conversion_piecewise`, rows `conversion_piecewise` and the coarse twin): weighted input ≥
|
|
517
527
|
`pw_slope·x + pw_intercept·unitsize·U` for every line, `U` = units online, or the units built (existing count +
|
|
518
528
|
invested − divested) without online variables; `conversion_indirect` skips these units. The rows are `≥`, so the
|
|
519
529
|
input can exceed the curve where that costs nothing or pays (the over-burn cases, units.md "Input above the
|
|
@@ -554,7 +564,7 @@ adds:
|
|
|
554
564
|
| `maxState_rp_start` | `model._eq_rp_storage_chain` | Sibling capacity bound on `v_state_rp_start[n, d, t]` over `rp_block_first`. Both bounds depend on invest/divest, so they are rows rather than variable bounds. |
|
|
555
565
|
| `non_anticipativity_rp_block_start` | `model._non_anticipativity.add_dispatch_constraints` | `v_state_rp_start` equal across the forecast star at the block starts inside the tie window, for `include_stochastics` nodes in `nodeState_rp`; a block already tied by a `non_anticipativity_storage_state_first` row is left out. |
|
|
556
566
|
|
|
557
|
-
In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods is a configuration error (`_run_model._reject_rolling_rp`), and so is a plain bind_forward_only node in a solve on representative periods (`_run_model._reject_plain_forward_in_rp_solve`). A plain bind_within_solve / bind_within_period / bind_intraperiod_blocks node there is a warning (`_run_model._warn_plain_cyclic_in_rp_solve`: the plain cycle moves the level between the representative periods unweighted while their flows are weighted, which is reasonable with equal weights or storage whose inflow timing does not matter; the weights are the user's to use).
|
|
567
|
+
In a stochastic solve every forecast branch period is an rp period with the timeset of the period it branches from (`_solve_writers._with_branch_period_timesets`); `rp_period_previous` is then a tree (a branch's first period ← the trunk period, later periods ← the same branch). A rolling_window solve on representative periods is a configuration error (`_run_model._rp_methods._reject_rolling_rp`), and so is a plain bind_forward_only node in a solve on representative periods (`_run_model._rp_methods._reject_plain_forward_in_rp_solve`). A plain bind_within_solve / bind_within_period / bind_intraperiod_blocks node there is a warning (`_run_model._rp_methods._warn_plain_cyclic_in_rp_solve`: the plain cycle moves the level between the representative periods unweighted while their flows are weighted, which is reasonable with equal weights or storage whose inflow timing does not matter; the weights are the user's to use).
|
|
558
568
|
|
|
559
569
|
The three blended-weights methods that activate the block —
|
|
560
570
|
`bind_within_solve_blended_weights`, `bind_within_period_blended_weights`,
|
|
@@ -580,7 +590,7 @@ import path. Both decode to the same nested
|
|
|
580
590
|
`rp_base_first`, `rp_base_last`, `rp_block_*` and `rp_base_period_set`
|
|
581
591
|
companion sets, one set of rows per period of the solve (every frame has a
|
|
582
592
|
`period` column), plus `rp_period_previous` (the rp periods in solve
|
|
583
|
-
order). `solve/_run_model.py` emits them for every period whose timeset
|
|
593
|
+
order). `solve/_run_model/_native_run_model.py` emits them for every period whose timeset
|
|
584
594
|
has `representative_period_weights`; periods without keep their
|
|
585
595
|
`timeset_weights` rows in the same `timestep_weight` frame. The forecast
|
|
586
596
|
branch periods of a stochastic solve are rp periods with the timeset of the
|
|
@@ -706,7 +716,7 @@ from `_period_params`; `_fixed_costs` reads
|
|
|
706
716
|
in `_arc_unions`.
|
|
707
717
|
|
|
708
718
|
The runner does not compute the order. It is encoded in the call
|
|
709
|
-
order of `_apply_db_overrides` (in `flex_data.py`) and the load sequence
|
|
719
|
+
order of `_apply_db_overrides` (in `flex_data/_db_overrides.py`) and the load sequence
|
|
710
720
|
in `load_flextool`. Adding a new derived field typically means appending
|
|
711
721
|
one call to the right phase.
|
|
712
722
|
|
|
@@ -803,14 +813,14 @@ Known gaps (not exercised, or not Enum, in this mode):
|
|
|
803
813
|
and the CLI region export (`decomposition/region_filter.py`), the staged input
|
|
804
814
|
loader (`engine/input/_db_loader.py`), the CSV reload
|
|
805
815
|
(`engine/_csv_reload/load.py`), and the sub-solve provider that
|
|
806
|
-
`_run_model.
|
|
816
|
+
`_run_model.native_run_model` builds when the run state carries none.
|
|
807
817
|
- Engine Benders inherits the vocabulary through `FlexData`
|
|
808
|
-
(`_region_filter.
|
|
818
|
+
(`_region_filter.split` widens it per region), but no lp_snapshot
|
|
809
819
|
fixture runs it; only the Benders / master-hosted region tests that
|
|
810
820
|
load with `axis_enums=True` cover it.
|
|
811
821
|
- Intended narrowing casts null labels outside the scenario's
|
|
812
822
|
vocabulary: `d` casts of periods outside the solve (`_retire_settlement.py`,
|
|
813
|
-
`_derived
|
|
823
|
+
`params/_derived/`) and the `constraint` cast in `_spinedb_reader.py`. No
|
|
814
824
|
LP effect in the fixtures; a site that needs such a label must not
|
|
815
825
|
read it through the cast.
|
|
816
826
|
|
|
@@ -920,6 +930,20 @@ folder) is architecture.md
|
|
|
920
930
|
The same `build_flextool` body backs three solver wrappers exported by
|
|
921
931
|
`polar_high`. They differ only in what they do *between* solves.
|
|
922
932
|
|
|
933
|
+
The loop that drives them is the `solve/_orchestration/` package: `_entry`
|
|
934
|
+
(`run_chain_from_db`, `run_orchestration`), `_cascade` (`_drive_cascade` and its
|
|
935
|
+
per-sub-solve `_run_one`: load, build or warm reuse, solve, outputs, handoff),
|
|
936
|
+
`_highs_options` (the HiGHS option set of a sub-solve), `_autoscale_hooks` (the
|
|
937
|
+
autoscale steps around a solve), `_guards` (solve-chain guards and the realization
|
|
938
|
+
solves of stochastic solves), `_steps` (`OrchestrationStep`) and `_memory` (the
|
|
939
|
+
memory / phase diagnostics). `_drive_cascade` hands each sub-solve to it from the
|
|
940
|
+
`solve/_run_model/` package: `_native_run_model` (`native_run_model`: the solve-tree
|
|
941
|
+
expansion, stochastic branching and the per-solve setup), `_rolling_storage` /
|
|
942
|
+
`_nested_storage` (the storage carry of rolling and nested solves), `_rp_methods`
|
|
943
|
+
(storage-binding methods on representative periods, the fix_start_end forward chain),
|
|
944
|
+
`_storage_frames` (the shared method readers and `_RollingStorage`) and
|
|
945
|
+
`_run_timelines` (realization-roll plans, run time steps).
|
|
946
|
+
|
|
923
947
|
### Monolithic — `polar_high.Problem`
|
|
924
948
|
|
|
925
949
|
The default. One LP, one HiGHS run. Used for every single-shot solve
|
|
@@ -1035,15 +1059,15 @@ columns are those of the module docstring:
|
|
|
1035
1059
|
The other attributes are not carriers: `unit_detail` / `online_left_out`
|
|
1036
1060
|
([Solve-level detail reduction](#solve-level-detail-reduction)), and
|
|
1037
1061
|
`cycle_start_state`, `storage_level`, `scope_start_state`,
|
|
1038
|
-
`realised_storage_usage`, which the cascade (`solve/_run_model
|
|
1062
|
+
`realised_storage_usage`, which the cascade (the `solve/_run_model/` package) reads
|
|
1039
1063
|
for cyclic scopes, nested starts and the per-roll usage cap.
|
|
1040
1064
|
|
|
1041
|
-
**Producer and transport.** `build_handoff_from_solution` (`flex_data.py`)
|
|
1065
|
+
**Producer and transport.** `build_handoff_from_solution` (`flex_data/_handoff.py`)
|
|
1042
1066
|
populates one `SolveHandoff` from the just-completed solve's `polar_high`
|
|
1043
1067
|
Solution and the sub-solve's provider (which it requires). The cascade
|
|
1044
1068
|
transports the carriers through the Provider's `HANDOFF_*` keys
|
|
1045
1069
|
(`_provider_translators._FIELD_TO_KEY`) — zero disk round-trips — and the
|
|
1046
|
-
override translator + `_apply_db_overrides` chain in `flex_data.py`
|
|
1070
|
+
override translator + `_apply_db_overrides` chain in `flex_data/_db_overrides.py`
|
|
1047
1071
|
translates each carrier into the next `FlexData`'s `p_entity_*` parameters
|
|
1048
1072
|
and the corresponding `n_*` / `ndt_*` / `p_*` sets
|
|
1049
1073
|
(`p_fix_storage_quantity`, `p_fix_storage_usage`,
|
|
@@ -1262,7 +1286,7 @@ for `fix_price` (an objective term). The horizon-end reference value
|
|
|
1262
1286
|
`handoff/fix_storage_price`).
|
|
1263
1287
|
|
|
1264
1288
|
A `fix_start_end` node ignores its `storage_binding_method` (reference/nodes.md,
|
|
1265
|
-
exception `bind_forward_only`): `_run_model._fix_start_end_chains_forward`
|
|
1289
|
+
exception `bind_forward_only`): `_run_model._rp_methods._fix_start_end_chains_forward`
|
|
1266
1290
|
rewrites the per-solve `input/node__storage_binding_method` frame right
|
|
1267
1291
|
after `_downgrade_rp_methods_for_non_rp_solve` (so a blended node of a
|
|
1268
1292
|
solve without representative periods goes blended → plain →
|
|
@@ -1286,7 +1310,7 @@ on representative periods the mapping is `_FIX_START_END_FORWARD_RP`: a
|
|
|
1286
1310
|
configuration error, `_reject_plain_forward_in_rp_solve`, checked on the
|
|
1287
1311
|
database methods before this mapping).
|
|
1288
1312
|
|
|
1289
|
-
Then `_run_model._timeblock_binds_within_period_in_roll` rewrites
|
|
1313
|
+
Then `_run_model._rolling_storage._timeblock_binds_within_period_in_roll` rewrites
|
|
1290
1314
|
`bind_within_timeblock` to `bind_within_period` in a rolling solve
|
|
1291
1315
|
(`_reject_rolling_with_gaps` has made sure each period is one timeblock),
|
|
1292
1316
|
so the per-period rolling rule (`_scope_rows`, `scope_*` rows) applies to
|
|
@@ -1372,7 +1396,7 @@ Behaviours to know:
|
|
|
1372
1396
|
operational is tied; unset for a dispatch solve, which ties its committed
|
|
1373
1397
|
window). Under `operations_only` the investments stay on the period labels.
|
|
1374
1398
|
A per-branch investment is never realized; the handoff realizes the tied
|
|
1375
|
-
reveal-period copy under its label (`flex_data._label_tied_cohorts`), and the
|
|
1399
|
+
reveal-period copy under its label (`flex_data._handoff_inputs._label_tied_cohorts`), and the
|
|
1376
1400
|
realization solve of an investment solve starts at the reveal
|
|
1377
1401
|
(`SolveConfig.realization_window`).
|
|
1378
1402
|
|
|
@@ -1442,22 +1466,22 @@ API of the other packages is in architecture.md
|
|
|
1442
1466
|
|
|
1443
1467
|
| You want to… | Start at | Then read |
|
|
1444
1468
|
|---|---|---|
|
|
1445
|
-
| Add a constraint that uses only existing parameters | `model/core.py` table of contents in `build_flextool` | Write an `_eq_<family>(b)` function: an early-return guard on its flag (`if not b.has_<x>: return`), then an `EQ. ─── <name>` header (formula, one to three lines on what it does) above the `m.add_cstr` call. Add it to the table of contents next to related families. A constraint of an optional feature goes into that feature's module (`add_constraints(b)`). Placement sets the LP row order: check the effect with `tools/lp_snapshot.py`. Register the constraint name in autoscale `CONSTRAINT_FAMILIES` (architecture.md [Layers](architecture.md#layers-bottom-up)), a period-level family also in `PERIOD_ROW_KINDS` / `REVIEWED_STEP_LEVEL` ([Realization rolls](#realization-rolls)), and list it in the `model/core.py` module docstring. |
|
|
1446
|
-
| Add a new input parameter | `_param_shapes.py` `PARAM_ALLOWED_SHAPES` | Add the parameter's entry, then populate it in `_direct.py` (trivial DB read) or a new module in `preprocess/params/` (computed). Add the field to `FlexData` and to the relevant feature's required-field tuple in `model/core
|
|
1447
|
-
| Add a new pre-solve set / index | `_per_solve_sets.py` if it's per-active-solve; a new module in `preprocess/emit/` otherwise | Wire the new function into `_apply_db_overrides` in `flex_data.py`. A frame that links two steps goes in `STEP_RELATIONS`. |
|
|
1448
|
-
| Add a new optional feature | A new module next to `_reserve.py` / `_group_slack.py` | Give it `add_variables(b)` (variables with `VAR.` headers, set on `b`), `add_constraints(b)` and `objective_terms(b) -> Expr \| None`, each with an early-return guard on the feature's flag. Add the flag (and any variable fields) to `_Build`; set the flag in `_prepare`, with a `MY_FEATURE = (...)` required-field tuple and a `_check(d, MY_FEATURE, "my_feature")` call if it needs one. Call `add_variables` from `_declare_variables` and put `add_constraints` / `objective_terms` in the `build_flextool` table of contents. Register every new variable and constraint in autoscale `VARIABLE_FAMILIES` / `CONSTRAINT_FAMILIES`, add them to the `model/core
|
|
1469
|
+
| Add a constraint that uses only existing parameters | `model/core/_build.py` table of contents in `build_flextool` | Write an `_eq_<family>(b)` function: an early-return guard on its flag (`if not b.has_<x>: return`), then an `EQ. ─── <name>` header (formula, one to three lines on what it does) above the `m.add_cstr` call. Add it to the table of contents next to related families. A constraint of an optional feature goes into that feature's module (`add_constraints(b)`). Placement sets the LP row order: check the effect with `tools/lp_snapshot.py`. Register the constraint name in autoscale `CONSTRAINT_FAMILIES` (architecture.md [Layers](architecture.md#layers-bottom-up)), a period-level family also in `PERIOD_ROW_KINDS` / `REVIEWED_STEP_LEVEL` ([Realization rolls](#realization-rolls)), and list it in the `model/core/_build.py` module docstring. |
|
|
1470
|
+
| Add a new input parameter | `_param_shapes.py` `PARAM_ALLOWED_SHAPES` | Add the parameter's entry, then populate it in `_direct.py` (trivial DB read) or a new module in `preprocess/params/` (computed). Add the field to `FlexData` and to the relevant feature's required-field tuple in `model/core/`. Register it in autoscale `PARAMETER_TYPES`; a time series also needs its `TIME_AGGREGATION` kind (architecture.md [Solve-step aggregation](architecture.md#solve-step-aggregation-new_stepduration-of-a-solve)). A parameter that takes several shapes needs a constant-vs-equivalent-map test (CONTRIBUTING.md "Shape-equivalence tests"). |
|
|
1471
|
+
| Add a new pre-solve set / index | `_per_solve_sets.py` if it's per-active-solve; a new module in `preprocess/emit/` otherwise | Wire the new function into `_apply_db_overrides` in `flex_data/_db_overrides.py`. A frame that links two steps goes in `STEP_RELATIONS`. |
|
|
1472
|
+
| Add a new optional feature | A new module next to `_reserve.py` / `_group_slack.py` | Give it `add_variables(b)` (variables with `VAR.` headers, set on `b`), `add_constraints(b)` and `objective_terms(b) -> Expr \| None`, each with an early-return guard on the feature's flag. Add the flag (and any variable fields) to `_Build`; set the flag in `_prepare`, with a `MY_FEATURE = (...)` required-field tuple and a `_check(d, MY_FEATURE, "my_feature")` call if it needs one. Call `add_variables` from `_declare_variables` and put `add_constraints` / `objective_terms` in the `build_flextool` table of contents. Register every new variable and constraint in autoscale `VARIABLE_FAMILIES` / `CONSTRAINT_FAMILIES`, add them to the `model/core/` module docstring, and check the LP with `tools/lp_snapshot.py`. |
|
|
1449
1473
|
| Trace a numerical issue | `solve_data/autoscale_<solve>.yaml` | The Layer 1 ranges + Layer 2/3 plans show which families are wide and which scalers fired. [scaling.md](scaling.md), architecture.md [Numerical scaling](architecture.md#numerical-scaling). |
|
|
1450
1474
|
| Trace a feasibility issue | `vq_*` outputs in `output_parquet/` | Slack activity localises the infeasibility to a row family. [slack_convention.md](slack_convention.md). |
|
|
1451
|
-
| Add a new decomposition mode | `_benders.py` (+ `_region_filter
|
|
1452
|
-
| Trace a wrong-period bug in rolling horizon | `_apply_db_overrides` in `flex_data.py` | The handoff translation site. Cross-check against the `SolveHandoff` fields populated by `build_handoff_from_solution` and the routing in `solve/_carry_routing.py`. |
|
|
1453
|
-
| Trace a warm-LP divergence | `_warm._reuse_blocker`, `_orchestration` `solver_key` | A reuse requires every `FlexData` field and the solver configuration to be identical; the INFO line "warm reuse fell back to COLD REBUILD" names the blocker. A warm/cold divergence on a reused sub-solve means something that shapes the LP lives outside `FlexData` and the solver key: add it to the comparison. |
|
|
1475
|
+
| Add a new decomposition mode | `_benders.py` (+ `_region_filter/`) for spatial, `_warm.py` + `_orchestration/_cascade.py` `_drive_cascade` for temporal | Each carries the FlexTool-side glue around a `polar_high` driver. Read [decomposition.md](decomposition.md) first. |
|
|
1476
|
+
| Trace a wrong-period bug in rolling horizon | `_apply_db_overrides` in `flex_data/_db_overrides.py` | The handoff translation site. Cross-check against the `SolveHandoff` fields populated by `build_handoff_from_solution` and the routing in `solve/_carry_routing.py`. |
|
|
1477
|
+
| Trace a warm-LP divergence | `_warm._reuse_blocker`, `_orchestration/_cascade.py` `solver_key` | A reuse requires every `FlexData` field and the solver configuration to be identical; the INFO line "warm reuse fell back to COLD REBUILD" names the blocker. A warm/cold divergence on a reused sub-solve means something that shapes the LP lives outside `FlexData` and the solver key: add it to the comparison. |
|
|
1454
1478
|
| Add a new variable / dual to the parquet output | `flextool/process_outputs/read_highs_solution.VARIABLE_SPECS` | Append one `VariableSpec` (architecture.md [Solution extraction](architecture.md#solution-extraction)). |
|
|
1455
1479
|
|
|
1456
1480
|
## Conventions worth knowing
|
|
1457
1481
|
|
|
1458
1482
|
- **Lazy at the rim, eager at the boundary.** Internal frames are
|
|
1459
1483
|
`pl.LazyFrame`; helpers `.collect()` once at the function boundary.
|
|
1460
|
-
This is the pattern documented
|
|
1484
|
+
This is the pattern documented in `params/_derived/__init__.py`
|
|
1461
1485
|
and `_per_solve_sets.py`.
|
|
1462
1486
|
- **None-skip is canonical.** A field at `None` means "feature not
|
|
1463
1487
|
active" and is the recommended way to opt out. Empty frames mean
|
|
@@ -75,7 +75,7 @@ The choice is per solve, so a single chain can mix schemes (e.g. a
|
|
|
75
75
|
Benders investment solve followed by a monolithic dispatch solve — the
|
|
76
76
|
Benders invest solve's realised trade + in-region capacity threads into
|
|
77
77
|
the downstream dispatch). The per-solve routing is in
|
|
78
|
-
`flextool/engine/solve/_orchestration.py` and the coordinator (master +
|
|
78
|
+
`flextool/engine/solve/_orchestration/_cascade.py` and the coordinator (master +
|
|
79
79
|
cut loop) in `flextool/engine/solve/_benders.py`. `benders_max_iter`
|
|
80
80
|
caps the cut loop and `benders_tolerance` is the relative
|
|
81
81
|
optimality-gap threshold for declaring convergence. Use Benders when the
|
|
@@ -279,7 +279,7 @@ The minimum time constraints work with variable timestep durations. The constrai
|
|
|
279
279
|
|
|
280
280
|
The look-back follows the timeline in the same way as ramp limits: it continues into a period whose time steps continue the previous period's on the same timeline and into the steps before a forecast branch starts, and stops at a gap in the timeline (the minimum time restarts after the gap), at the start of a representative period, at a period that reuses the same timeset as the previous one and at the first step of a solve. In rolling window solves, the start-ups and shut-downs that the previous roll realized count for the time steps of the next roll that continue its last realized step on the timeline, in the same way as the ramp continues: the same period, a period that continues it and every forecast branch that starts there (not a period that reuses the same timeset, a step after a gap or a representative-period start). So the solve horizon overlap does not need to cover the minimum times. A solve with longer time steps (for example a 6-hour storage roll after an hourly dispatch) continues the realized hourly step that ends where its own previous step ends, by position in time. A warning is printed only when a solve continues the timeline of an earlier solve but its first step neither follows nor ends at the earlier solve's last realized step (a hole or an overlap between the two), since no realized on-line history reaches it then.
|
|
281
281
|
|
|
282
|
-
If the unit also has ramp limits (`ramp_method` with `ramp_speed_up`, `ramp_speed_down`), the model additionally tightens the maximum output in the startup and pre-shutdown timesteps based on how fast the unit can ramp within one timestep. A unit that starts in a timestep reaches on average at most `min_load + ½ × ramp_speed_up × 60 × timestep duration` of the started capacity in that step (it synchronises at minimum load and then ramps up: half a step's ramp on average), and in the step before it shuts down at most `min_load + ½ × ramp_speed_down × 60 × timestep duration` (both capped at full output
|
|
282
|
+
If the unit also has ramp limits (`ramp_method` with `ramp_speed_up`, `ramp_speed_down`), the model additionally tightens the maximum output in the startup and pre-shutdown timesteps based on how fast the unit can ramp within one timestep. A unit that starts in a timestep reaches on average at most `min_load + ½ × ramp_speed_up × 60 × timestep duration` of the started capacity in that step (it synchronises at minimum load and then ramps up: half a step's ramp on average), and in the step before it shuts down at most `min_load + ½ × ramp_speed_down × 60 × timestep duration` (both capped at full output; `availability` limits the unit's total output through its capacity). A unit online for a single step gets the smaller of the two. On an input with a ramp limit of a unit with several inputs or outputs, the limit is on the input it draws (at minimum load it needs the input of its minimum-load output). Without ramp limits, the unit can reach full output immediately after starting.
|
|
283
283
|
|
|
284
284
|
Startups and shutdowns count exactly the units coming online and going offline. A unit with online variables ramps on its online capacity: the units online in both steps change by at most the ramp; a unit starting in a step reaches at most the startup-step output above, and a unit shutting down drops from at least its minimum load (and, in the step before, at most the pre-shutdown output). Starting and stopping units in the same step therefore gives no extra ramp room on a unit's output. On an input, or on one output of a unit with several outputs, a start/stop pair can still gain up to the minimum-load share of that flow, which the startup cost pays for.
|
|
285
285
|
|
|
@@ -8,7 +8,7 @@ Connections can transfer energy between two nodes. Parameters for the connection
|
|
|
8
8
|
- it cannot model losses (a loss one way would be a gain the other way), so its `efficiency` is ignored (treated as 1, with a warning: W-0591) when the two nodes have the same `unit_of_measure` or either has none, and always on a line of a `dc_power_flow_with_angles` group. For losses, use *regular* or *exact*.
|
|
9
9
|
- between nodes with different `unit_of_measure` values, the `efficiency` is a conversion between the units (e.g. MWh to t), the same in both directions: the flow f arriving at the second node takes f / `efficiency` from the first, and in the reverse direction the first node gets f / `efficiency` for the f taken from the second. FlexTool warns about it (W-0589).
|
|
10
10
|
- its `other_operational_cost` is ignored (it would be a cost one way and a revenue the other), with a warning (W-0590). For a variable cost, use *variable_cost_only*, *regular* or *exact*.
|
|
11
|
-
- `startup_method` gives the connection online capacity. *linear*: the online capacity is anything between 0 and the built capacity; *integer*: whole units of the connection (of `virtual_unitsize`, else the whole connection), computationally more demanding; *linear_fix_in_uc* and *integer_fix_in_uc*: the same, and in a separate realization solve the online capacity over the jump (the realized periods) is kept at what the stochastic solve chose. The connection's flow in each direction is limited by its online capacity × availability, its reserve by its online capacity, and `startup_cost` is paid per MW brought online. Connections have no minimum load or minimum up/down times. Not available for connections in a `dc_power_flow_with_angles` group, other than `is_DC` connections (an error: switching a DC power-flow line off would need line-switching constraints).
|
|
11
|
+
- `startup_method` gives the connection online capacity. *linear*: the online capacity is anything between 0 and the built capacity; *integer*: whole units of the connection (of `virtual_unitsize`, else the whole connection), computationally more demanding; *linear_fix_in_uc* and *integer_fix_in_uc*: the same, and in a separate realization solve the online capacity over the jump (the realized periods) is kept at what the stochastic solve chose. The connection's flow in each direction is limited by its online capacity and by its built capacity × availability, its reserve by its online capacity, and `startup_cost` is paid per MW brought online. Connections have no minimum load or minimum up/down times. Not available for connections in a `dc_power_flow_with_angles` group, other than `is_DC` connections (an error: switching a DC power-flow line off would need line-switching constraints).
|
|
12
12
|
- `invest_method` to define investment and retirement limits: either *not_allowed* or then a combination of
|
|
13
13
|
- *invest* and/or *retire*
|
|
14
14
|
- investment limits for each *period* and/or for all periods (*total*) or *no_limit*
|
|
@@ -70,7 +70,7 @@ A unit can only offer reserve that reduces its flow as far as its flow allows: d
|
|
|
70
70
|
|
|
71
71
|
Reserve that raises a unit's flow needs headroom: upward reserve at a node the unit feeds and downward reserve at a node it consumes from (consuming more) cannot exceed the free capacity of that flow (built capacity; online capacity for a unit with online variables), so a unit at full consumption offers no downward reserve at its input, and an offline unit none. A downward reserve at the input node of a unit with one input and one output is converted to output flow by the unit's efficiency; such a unit with several outputs needs the headroom on each output. A unit with several inputs is only kept within that input's capacity, and its upward reserve at an output and downward reserve at an input (both "burn more") are each checked against the unit's capacity separately, not together. The effective limit is the smaller of these and `max_share` × capacity. A connection's reserve at a node is limited by its net position there: upward reserve by its free capacity towards the node plus the flow it sends away from the node (which it can stop), downward reserve by the flow it brings to the node plus its free capacity away from it (power at the node, after losses). A one-way connection can therefore offer upward reserve at its sending node only up to what it draws there. For a connection with online variables the online capacity counts; for an *exact* connection, the capacity of the direction it is set to.
|
|
72
72
|
|
|
73
|
-
A unit with online variables (a `startup_method` other than `no_startup`, or a `minimum_time_method` other than *none*) holds upward reserve only from its online capacity: at a node the unit feeds, its output plus the upward reserve it holds there cannot exceed online capacity
|
|
73
|
+
A unit with online variables (a `startup_method` other than `no_startup`, or a `minimum_time_method` other than *none*) holds upward reserve only from its online capacity: at a node the unit feeds, its output plus the upward reserve it holds there cannot exceed its online capacity (× `capacity_max_coeff`), and for a unit with several outputs the sum of its outputs plus the upward reserve held at them cannot exceed its online capacity; both also stay within the built capacity × availability, as for every unit. An offline unit therefore offers no upward reserve, and an upward reserve requirement can make it worth committing a unit. This is a simplification: offline units are assumed unable to start within the reserve's activation time (reserve activation time versus unit start-up time is not modelled yet). Units without online variables are limited by their built capacity.
|
|
74
74
|
|
|
75
75
|
A unit with ramp limits (`ramp_method` `ramp_limit` or `both`) can hold upward reserve only within its upward ramp room of the time step after the change of its flow from the previous step, and downward reserve within its downward ramp room: the flow plus the upward reserve may rise from the previous step's flow by at most `ramp_speed_up × 60 × (average duration of the two steps) × capacity`, and the flow minus the downward reserve may fall by at most the same with `ramp_speed_down` (so a unit ramping down in a step can hold more upward reserve in it). "Consume more" downward reserve at a node the unit consumes from uses the ramp room of that input (an upward input ramp), converted by the efficiency on a unit with one input and one output; upward reserve there (consume less) uses the downward room. In the first step of a solve, and after a gap in the timeline, the reserve alone is limited to one step's room, using the online capacity for a unit with online variables. For units with online variables the reserve uses the ramp room of the unit's online capacity: a unit starting or stopping in a step is limited by its startup / shutdown output there instead (see the how-to on start-ups), not by any extra room from declaring the start or stop itself. The ramp room is per model step; the reserve's activation time is not considered.
|
|
76
76
|
|
|
@@ -23,12 +23,12 @@ Units convert energy (or matter) from one form to another (e.g. open cycle gas t
|
|
|
23
23
|
|
|
24
24
|
- the sum of the unit's output flows >= min_load * online capacity
|
|
25
25
|
|
|
26
|
-
The output flows are the ones that define the unit's capacity: all outputs with a non-zero `conversion_flow_coeff` (for a unit with one input and one output, its single flow; for a unit without outputs, its input). Inputs never have their own minimum: a unit with several inputs can run on any mix of them (use `input_share_min` to require a share of an input). The floor is not scaled by `availability
|
|
26
|
+
The output flows are the ones that define the unit's capacity: all outputs with a non-zero `conversion_flow_coeff` (for a unit with one input and one output, its single flow; for a unit without outputs, its input). Inputs never have their own minimum: a unit with several inputs can run on any mix of them (use `input_share_min` to require a share of an input). The floor is not scaled by `availability`: availability derates the unit's capacity (the flow ≤ capacity × `availability`), so with an availability below `min_load` the unit can still be online with fewer units online (at most capacity × `availability` / `min_load`). `capacity_min_coeff` on an output does not lower this floor; to lower or switch off the minimum load, lower `min_load` (0 switches it off; no value means 0, so a unit with an online variable does not need a `min_load`). Downward reserve (and upward reserve at an input node, i.e. reduced consumption) offered by the unit cannot take its outputs below this floor (see [Reserves](reserves.md)).
|
|
27
27
|
|
|
28
28
|
- `efficiency_at_min_load` - [-] Output / input at minimum load, like `efficiency` (e.g. 0.4; may be above 1). Efficiency of a `min_load_efficiency` unit at its minimum load; the fuel use is linear between minimum load at this efficiency and full load at `efficiency`. Matters only for a unit with a `min_load` above 0 (with `min_load` 0 the unit uses `efficiency`). Without a value (or for the periods or timesteps a map leaves out) the unit uses `efficiency` at minimum load too, i.e. a flat curve as with *constant_efficiency*, while its minimum load still applies; a warning names such units. Constant, period, time or period+time.
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
- `availability` - [e.g. 0.9 means 90%] Fraction of capacity available for flows from/to the unit
|
|
31
|
+
- `availability` - [e.g. 0.9 means 90%] Fraction of capacity available for flows from/to the unit: the flows (and the upward reserve) are limited to capacity × `availability`. For a unit with online variables, availability derates the capacity, not the units online nor the output of a unit online: each unit online keeps its full capacity and its `min_load`, so a unit whose availability is below its `min_load` can still be online, with fewer units online (at most capacity × `availability` / `min_load`; a single *integer* unit stays online at that output if `min_load` ≤ `availability`). A fall in availability therefore does not start or stop units unless `min_load` forces fewer units online. Inertia counts the units online, which availability does not limit. In the capacity margin of a group the unit counts at capacity × `availability`. Constant, period, time, period+time or stochastic time.
|
|
32
32
|
- Economic: `startup_cost` ([CUR/MW] cost of starting up one MW of capacity; constant or period), `fixed_cost` (fuel cost comes through the use of fuel commodities and other variable costs are defined for flows between unit and node, see below)
|
|
33
33
|
|
|
34
34
|
## Part-load efficiency curve (piecewise_linear)
|
|
@@ -470,7 +470,8 @@ The bands (the down bands are stored as negative numbers):
|
|
|
470
470
|
potential of a VRE unit that also touches a storage node is not subtracted: that unit is in the storage band.
|
|
471
471
|
- *ramp_demand* — the same for the demand alone (demand = −`inflow`).
|
|
472
472
|
- *units_up* / *units_down* — how much the units with a flow at the node can raise / lower the supply at t⁺: up to
|
|
473
|
-
their capacity × availability at t⁺
|
|
473
|
+
their capacity × availability at t⁺ (units with online variables: also within the capacity of the units online in
|
|
474
|
+
both steps, at full output) and down to their minimum load, within their ramp limits, minus the reserve
|
|
474
475
|
they hold at t⁺ in that direction. A unit that takes from the node (an input) raises the supply by consuming less;
|
|
475
476
|
its input is converted with the efficiency of each step. Units with online variables count only the units online
|
|
476
477
|
in both steps: the output of a unit that starts at t⁺, and the drop of a unit that stops at t⁺, is forced
|
|
@@ -484,7 +485,8 @@ The bands (the down bands are stored as negative numbers):
|
|
|
484
485
|
rise is in the net-load line). *vre_down* is how much less than the potential allows the VRE units can give at
|
|
485
486
|
t⁺; it can be larger than the VRE's own output, because it includes curtailing the coming rise of the potential.
|
|
486
487
|
- *connections_up* / *connections_down* — how much the connections can raise / lower the flow into the node at
|
|
487
|
-
t⁺, within their capacity × availability at t⁺ in each direction (
|
|
488
|
+
t⁺, within their capacity × availability at t⁺ in each direction (with online variables: also within the
|
|
489
|
+
capacity of the units online; losses on the sending side: an export at full
|
|
488
490
|
capacity draws capacity ÷ efficiency), minus the reserve the connection holds at the node at t⁺. The far end of
|
|
489
491
|
the connection is not considered.
|
|
490
492
|
|
|
@@ -930,10 +930,12 @@ def snapshot_solver_option_files(
|
|
|
930
930
|
work_folder: str | os.PathLike,
|
|
931
931
|
logger: logging.Logger | None = None,
|
|
932
932
|
names: tuple[str, ...] = SOLVER_NAMES,
|
|
933
|
+
announce: bool = True,
|
|
933
934
|
) -> SolverOptionFiles:
|
|
934
935
|
"""Read the run's option files once and write them to ``<work_folder>/solve_data/solver_config/``.
|
|
935
936
|
|
|
936
|
-
Every run writes the snapshot afresh (an older one is replaced). Logs the ladder (``Solver config
|
|
937
|
+
Every run writes the snapshot afresh (an older one is replaced). Logs the ladder (``Solver config:``; not
|
|
938
|
+
with ``announce=False``, for a caller whose header shows it already), one
|
|
937
939
|
warning when no folder was found (or one per folder skipped as an unedited template copy, which also names the
|
|
938
940
|
folder used), one warning per folder of the ladder that does not exist, for a one-folder ladder one line for
|
|
939
941
|
the solvers that use the packaged default, and one warning when a ``<work_folder>/solver_config/`` from an
|
|
@@ -942,7 +944,8 @@ def snapshot_solver_option_files(
|
|
|
942
944
|
"""
|
|
943
945
|
log = logger or _logger
|
|
944
946
|
files = read_solver_option_files(source, names)
|
|
945
|
-
|
|
947
|
+
if announce:
|
|
948
|
+
log.info("Solver config: %s", source.describe())
|
|
946
949
|
for folder in source.skipped:
|
|
947
950
|
log.warning(
|
|
948
951
|
"Not using %s: it holds only FlexTool's default option files (probably copied there by FlexTool 4.3 "
|
|
@@ -80,6 +80,7 @@ def source_files(markdown_root: Path, package_dir: Path = PACKAGE_DIR) -> list[t
|
|
|
80
80
|
out.append((f"md/{rel}", path))
|
|
81
81
|
patterns = (
|
|
82
82
|
"engine/model/*.py",
|
|
83
|
+
"engine/model/*/*.py", # a package of the model (core) and its modules
|
|
83
84
|
"engine/solve/_benders.py",
|
|
84
85
|
"process_outputs/_output_meta.py",
|
|
85
86
|
"process_outputs/write_spinedb.py",
|
|
@@ -566,7 +566,7 @@ def hints(inputs: dict[str, Any], blocks: dict[str, dict], groups: list[str]) ->
|
|
|
566
566
|
limit=_shown_number(limit)))
|
|
567
567
|
# A minimum binds under the methods that use the limit of its kind, as the engine builds them
|
|
568
568
|
# (engine/model/_cumulative_invest.py: minInvest_entity_total over e_invest_total, minInvest_entity_period
|
|
569
|
-
# over ed_invest_period_set; the method sets in engine/preprocess/params/_derived.py): never under *_no_limit.
|
|
569
|
+
# over ed_invest_period_set; the method sets in engine/preprocess/params/_derived/_invest_sets.py): never under *_no_limit.
|
|
570
570
|
total_hint("hint_min_total", invested, "invest_min_total", method in m.invest_total, "invested")
|
|
571
571
|
period_hints("hint_min_period", "invested", "invest_min_period", method in m.invest_period, "invested",
|
|
572
572
|
zero=False)
|
|
@@ -44,10 +44,10 @@ class Header:
|
|
|
44
44
|
names: tuple[str, ...] # the expanded names
|
|
45
45
|
formula: str # the formula lines (the leading run of the body)
|
|
46
46
|
notes: str # the prose lines after the formula
|
|
47
|
-
file: str # "flextool/engine/model/core.py"
|
|
47
|
+
file: str # "flextool/engine/model/core/_ramp.py"
|
|
48
48
|
line: int # 1-based line of the header in the installed code
|
|
49
49
|
function: str | None # the enclosing function
|
|
50
|
-
module: str # "core", "_online", …, "_benders"
|
|
50
|
+
module: str # "core" (a package: one module), "_online", …, "_benders"
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
# ---------------------------------------------------------------------------
|
|
@@ -211,29 +211,108 @@ def _rel(path: Path) -> str:
|
|
|
211
211
|
return path.resolve().relative_to(PACKAGE_DIR.parent).as_posix()
|
|
212
212
|
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
#: The model module whose ``build_flextool`` step table orders the page: a file ``model/<name>.py`` or a package
|
|
215
|
+
#: ``model/<name>/`` (then the one of its files that defines ``build_flextool``).
|
|
216
|
+
TOC_MODULE = "core"
|
|
217
|
+
_MODEL_PACKAGE = "flextool.engine.model"
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _module_of(path: Path) -> str:
|
|
221
|
+
"""The model module of a source file: its stem, or for a file of a package under ``model/`` the package's name."""
|
|
222
|
+
first = path.relative_to(MODEL_DIR).parts[0]
|
|
223
|
+
return first[:-3] if first.endswith(".py") else first
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _model_modules() -> list[str]:
|
|
227
|
+
"""Every model module, alphabetically: the files ``model/*.py`` and the packages ``model/<name>/``."""
|
|
228
|
+
files = [p.stem for p in MODEL_DIR.glob("*.py") if p.stem != "__init__"]
|
|
229
|
+
packages = [p.parent.name for p in MODEL_DIR.glob("*/__init__.py")]
|
|
230
|
+
return sorted(files + packages)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
def _dotted_path(dotted: str) -> Path | None:
|
|
234
|
+
"""The source file of a dotted module under ``flextool.engine.model`` (a package: its ``__init__.py``); None for
|
|
235
|
+
another module or a name that is no module."""
|
|
236
|
+
if not dotted.startswith(_MODEL_PACKAGE + "."):
|
|
237
|
+
return None
|
|
238
|
+
base = MODEL_DIR.joinpath(*dotted[len(_MODEL_PACKAGE) + 1:].split("."))
|
|
239
|
+
path = base / "__init__.py" if base.is_dir() else base.with_suffix(".py")
|
|
240
|
+
return path if path.is_file() else None
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
def _toc_tree() -> tuple[Path, ast.Module]:
|
|
244
|
+
single = MODEL_DIR / f"{TOC_MODULE}.py"
|
|
245
|
+
candidates = [single] if single.is_file() else sorted((MODEL_DIR / TOC_MODULE).rglob("*.py"))
|
|
246
|
+
for path in candidates:
|
|
247
|
+
tree = ast.parse(path.read_text(encoding="utf-8"))
|
|
248
|
+
if any(isinstance(n, ast.FunctionDef) and n.name == "build_flextool" for n in tree.body):
|
|
249
|
+
return path, tree
|
|
250
|
+
raise ValueError(f"no build_flextool in model module {TOC_MODULE!r}")
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
def _step_files() -> list[Path]:
|
|
254
|
+
"""The source file of each step of the ``build_flextool`` table, in table order: a bare name is the file it is
|
|
255
|
+
imported from (or the table's own file), ``module.function`` the file of that module."""
|
|
256
|
+
toc, tree = _toc_tree()
|
|
257
|
+
bound: dict[str, Path] = {}
|
|
258
|
+
for node in tree.body:
|
|
259
|
+
if isinstance(node, ast.ImportFrom) and node.module and not node.level:
|
|
260
|
+
for alias in node.names:
|
|
261
|
+
target = _dotted_path(f"{node.module}.{alias.name}") or _dotted_path(node.module)
|
|
262
|
+
if target is not None:
|
|
263
|
+
bound[alias.asname or alias.name] = target
|
|
264
|
+
files: list[Path] = []
|
|
219
265
|
for node in ast.walk(tree):
|
|
220
266
|
if isinstance(node, ast.FunctionDef) and node.name == "build_flextool":
|
|
221
267
|
for sub in ast.walk(node):
|
|
222
268
|
if isinstance(sub, ast.For) and isinstance(sub.iter, ast.Tuple):
|
|
223
269
|
for elt in sub.iter.elts:
|
|
224
|
-
if
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
270
|
+
if isinstance(elt, ast.Name):
|
|
271
|
+
files.append(bound.get(elt.id, toc))
|
|
272
|
+
elif isinstance(elt, ast.Attribute) and isinstance(elt.value, ast.Name):
|
|
273
|
+
if elt.value.id not in bound:
|
|
274
|
+
raise ValueError(
|
|
275
|
+
f"{_rel(toc)}: the step {ast.unparse(elt)} names a module that is not imported "
|
|
276
|
+
f"with 'from {_MODEL_PACKAGE} import {elt.value.id}'; the formulation page "
|
|
277
|
+
f"cannot place it")
|
|
278
|
+
files.append(bound[elt.value.id])
|
|
279
|
+
return files
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def module_order() -> list[str]:
|
|
283
|
+
"""Model modules in the ``build_flextool`` table-of-contents order (the table's own module first), then the
|
|
284
|
+
modules with headers that the table does not name, alphabetically."""
|
|
285
|
+
order = [_module_of(_toc_tree()[0])]
|
|
286
|
+
for path in _step_files():
|
|
287
|
+
if (module := _module_of(path)) not in order:
|
|
288
|
+
order.append(module)
|
|
289
|
+
return order + [m for m in _model_modules() if m not in order]
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def module_files(module: str) -> list[Path]:
|
|
293
|
+
"""The source files of a model module in page order. A package is one module: its ``__init__.py``, then its
|
|
294
|
+
files in the order in which the ``build_flextool`` table first names a step of each, then the rest by name."""
|
|
295
|
+
package = MODEL_DIR / module
|
|
296
|
+
if not (package / "__init__.py").is_file():
|
|
297
|
+
return [MODEL_DIR / f"{module}.py"]
|
|
298
|
+
files = [package / "__init__.py"]
|
|
299
|
+
for path in _step_files() + sorted(package.rglob("*.py")):
|
|
300
|
+
if package in path.parents and path not in files:
|
|
301
|
+
files.append(path)
|
|
302
|
+
return files
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def model_sources() -> list[tuple[str, Path]]:
|
|
306
|
+
"""``(module, file)`` of every model source file, in page order within each module."""
|
|
307
|
+
return [(module, path) for module in _model_modules() for path in module_files(module)]
|
|
229
308
|
|
|
230
309
|
|
|
231
310
|
def collect_headers() -> dict[str, list[Header]]:
|
|
232
311
|
"""Headers by module, in page order; modules without a header are left out."""
|
|
233
312
|
out: dict[str, list[Header]] = {}
|
|
234
313
|
for module in module_order():
|
|
235
|
-
|
|
236
|
-
|
|
314
|
+
hs = [h for path in module_files(module)
|
|
315
|
+
for h in parse_headers(path.read_text(encoding="utf-8"), _rel(path), module)]
|
|
237
316
|
if hs:
|
|
238
317
|
out[module] = hs
|
|
239
318
|
out["_benders"] = parse_headers(BENDERS_FILE.read_text(encoding="utf-8"), _rel(BENDERS_FILE), "_benders")
|
|
@@ -257,7 +336,7 @@ def _module_title(module: str) -> tuple[str, str]:
|
|
|
257
336
|
if module == "_benders":
|
|
258
337
|
path = BENDERS_FILE
|
|
259
338
|
else:
|
|
260
|
-
path =
|
|
339
|
+
path = module_files(module)[0]
|
|
261
340
|
doc = ast.get_docstring(ast.parse(path.read_text(encoding="utf-8"))) or ""
|
|
262
341
|
first = doc.strip().splitlines()[0] if doc.strip() else ""
|
|
263
342
|
if module == "core":
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""flextool integration with the polar_high LP eDSL.
|
|
2
2
|
|
|
3
3
|
This subpackage is **flextool-specific** — it knows the on-disk layout
|
|
4
|
-
of flextool's ``input/`` + ``solve_data/`` CSVs (``flex_data
|
|
5
|
-
shape of flextool's optimization model (``model/core
|
|
4
|
+
of flextool's ``input/`` + ``solve_data/`` CSVs (``preprocess/flex_data/``) and the
|
|
5
|
+
shape of flextool's optimization model (``model/core/``). The
|
|
6
6
|
``polar_high`` package itself knows nothing of flextool.
|
|
7
7
|
"""
|
|
8
8
|
|