config: Use gurobi instead of gurobi_persistent
The memory requirements of gurobi_persistent are significantly higher! Trade cpu speed with memory.
This commit is contained in:
parent
e27db0f462
commit
254ef948e5
@ -142,9 +142,10 @@ def partition(w):
|
|||||||
|
|
||||||
def memory(w):
|
def memory(w):
|
||||||
if w.clusters.endswith('m'):
|
if w.clusters.endswith('m'):
|
||||||
return 61000
|
return 18000 + 180 * int(w.clusters[:-1])
|
||||||
else:
|
else:
|
||||||
return 4890+310 * int(w.clusters)
|
return 8000 + 190 * int(w.clusters)
|
||||||
|
# return 4890+310 * int(w.clusters)
|
||||||
|
|
||||||
rule solve_network:
|
rule solve_network:
|
||||||
input: "networks/{network}_s{simpl}_{clusters}_lv{lv}_{opts}.nc"
|
input: "networks/{network}_s{simpl}_{clusters}_lv{lv}_{opts}.nc"
|
||||||
|
@ -129,7 +129,7 @@ solving:
|
|||||||
# max_iterations: 1
|
# max_iterations: 1
|
||||||
# nhours: 10
|
# nhours: 10
|
||||||
solver:
|
solver:
|
||||||
name: gurobi_persistent
|
name: gurobi
|
||||||
threads: 4
|
threads: 4
|
||||||
method: 2
|
method: 2
|
||||||
crossover: 0 # -1 (Choose freely)
|
crossover: 0 # -1 (Choose freely)
|
||||||
|
Loading…
Reference in New Issue
Block a user