allfed / allfed-integrated-model

Integrated model to calculate the effects of resilient foods in catastrophic events
https://allfed.github.io/allfed-integrated-model/
GNU General Public License v3.0
11 stars 10 forks source link

[alter_scenario_if_known_to_fail] Ecuador fails sometimes in linear optimizer #143

Open morganrivers opened 3 months ago

morganrivers commented 3 months ago

Crashes the linear optimization when the parameters are as follows, so set the shutoff to immediate to remove second and third rounds of optimization.

            {
                "country_code": "ECU",
                "scenario": [
                    "all_resilient_foods",
                    "seaweed",
                    "greenhouse",
                    "methane_scp",
                    "relocated_crops",
                    "industrial_foods",
                    "cellulosic_sugar",
                ],
                "crop_disruption": ["zero", "baseline"],
                "meat_strategy": ["feed_only_ruminants"],
                "end_simulation_stocks_ratio": ["zero", "baseline"],
                "cull": ["do_eat_culled"],
                "shutoff": ["long_delayed_shutoff"],
                "CORRECTION": {"shutoff": "immediate"},
                "WARNING": (
                    "WARNING: ECU cannot run with these specific conditions. "
                    "Changing scenario to shut off all feed and biofuels immediately."
                ),
            },
morganrivers commented 3 months ago

this is in alter_scenario_if_known_to_fail function in run_scenario.py line 641