pypsa-eur/scripts
Max Parzen f1243c3e0c Fix distribute clustering with cbc/glpk/ipopt
Assume you have 10 nodes that need to be distributed between 2 countries.
What can happen with some of the open source solvers is that one country
gets assigned to 9.01 (float) nodes, and the other one to 0.99.

Now using .astype(int) would lead to a node distribution of 0 and 9, as
the `astype(int)` function round down by default (0.99 -> 0). This assigned
zero value breaks the code in case open source solvers are used.
Gurobi somehow does deal with it.
2021-11-24 14:16:24 +01:00
..
_helpers.py change license 2021-09-14 16:37:41 +02:00
add_electricity.py change license 2021-09-14 16:37:41 +02:00
add_extra_components.py change license 2021-09-14 16:37:41 +02:00
base_network.py base_network.py: fix scipy spatial import 2021-10-05 17:30:22 +02:00
build_bus_regions.py change license 2021-09-14 16:37:41 +02:00
build_cutout.py change license 2021-09-14 16:37:41 +02:00
build_hydro_profile.py change license 2021-09-14 16:37:41 +02:00
build_load_data.py build_load_data: separate retrieving and processing load data 2021-11-10 10:37:09 +01:00
build_natura_raster.py change license 2021-09-14 16:37:41 +02:00
build_powerplants.py change license 2021-09-14 16:37:41 +02:00
build_renewable_profiles.py change license 2021-09-14 16:37:41 +02:00
build_shapes.py change license 2021-09-14 16:37:41 +02:00
cluster_network.py Fix distribute clustering with cbc/glpk/ipopt 2021-11-24 14:16:24 +01:00
make_summary.py change license 2021-09-14 16:37:41 +02:00
plot_network.py change license 2021-09-14 16:37:41 +02:00
plot_p_nom_max.py change license 2021-09-14 16:37:41 +02:00
plot_summary.py change license 2021-09-14 16:37:41 +02:00
prepare_links_p_nom.py change license 2021-09-14 16:37:41 +02:00
prepare_network.py change license 2021-09-14 16:37:41 +02:00
retrieve_databundle.py change license 2021-09-14 16:37:41 +02:00
simplify_network.py change license 2021-09-14 16:37:41 +02:00
solve_network.py change license 2021-09-14 16:37:41 +02:00
solve_operations_network.py change license 2021-09-14 16:37:41 +02:00