Skip to content

Commit

Permalink
Merge pull request #1000 from PyPSA/solving-fixes
Browse files Browse the repository at this point in the history
adjust resources perfect foresight and solver settings
  • Loading branch information
fneum authored Apr 3, 2024
2 parents d74017e + 3819e64 commit 185bc84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions config/config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ solving:
PreDual: 0
GURO_PAR_BARDENSETHRESH: 200
gurobi-numeric-focus:
name: gurobi
NumericFocus: 3 # Favour numeric stability over speed
method: 2 # barrier
crossover: 0 # do not use crossover
Expand All @@ -798,7 +797,6 @@ solving:
threads: 8
Seed: 123
gurobi-fallback: # Use gurobi defaults
name: gurobi
crossover: 0
method: 2 # barrier
BarHomogeneous: 1 # Use homogeneous barrier if standard does not converge
Expand Down
3 changes: 2 additions & 1 deletion rules/solve_perfect.smk
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ rule add_existing_baseyear:
planning_horizons=config["scenario"]["planning_horizons"][0], #only applies to baseyear
threads: 1
resources:
mem_mb=2000,
mem_mb=config_provider("solving", "mem_mb"),
runtime=config_provider("solving", "runtime", default="24h"),
log:
logs(
"add_existing_baseyear_elec_s{simpl}_{clusters}_l{ll}_{opts}_{sector_opts}_{planning_horizons}.log"
Expand Down

0 comments on commit 185bc84

Please sign in to comment.