From 5ee280b96fc51ea6745fa78363d4abbfdb93b8a8 Mon Sep 17 00:00:00 2001 From: Koen van Greevenbroek Date: Tue, 5 Oct 2021 11:00:30 +0200 Subject: [PATCH 1/3] Update default CPLEX options following PyPSA update For more recent versions of CPLEX and PyPSA, using dotted options works while the current default crashes a CPLEX solve with "AttributeError: 'RootParameterGroup' object has no attribute 'barrier_convergetol'". See https://github.com/PyPSA/PyPSA/pull/168. --- config.default.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.default.yaml b/config.default.yaml index d97f4712..74f03d69 100755 --- a/config.default.yaml +++ b/config.default.yaml @@ -238,8 +238,8 @@ solving: # threads: 4 # lpmethod: 4 # barrier # solutiontype: 2 # non basic solution, ie no crossover - # barrier_convergetol: 1.e-5 - # feasopt_tolerance: 1.e-6 + # barrier.convergetol: 1.e-5 + # feasopt.tolerance: 1.e-6 plotting: map: From 08349d78973c1235d59941fc7f9e5bedaae7182a Mon Sep 17 00:00:00 2001 From: Koen van Greevenbroek Date: Tue, 5 Oct 2021 11:08:32 +0200 Subject: [PATCH 2/3] Also update the default CPLEX configuration in test config --- test/config.test1.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/config.test1.yaml b/test/config.test1.yaml index aea3dbc2..6b3e667a 100755 --- a/test/config.test1.yaml +++ b/test/config.test1.yaml @@ -195,8 +195,8 @@ solving: # threads: 4 # lpmethod: 4 # barrier # solutiontype: 2 # non basic solution, ie no crossover - # barrier_convergetol: 1.e-5 - # feasopt_tolerance: 1.e-6 + # barrier.convergetol: 1.e-5 + # feasopt.tolerance: 1.e-6 plotting: map: From 66524bf7978365357114ff0394a27001ff7cf6db Mon Sep 17 00:00:00 2001 From: Koen van Greevenbroek Date: Tue, 5 Oct 2021 11:20:45 +0200 Subject: [PATCH 3/3] Update obsolete link to CPLEX documentation --- doc/configtables/solving-solver.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/configtables/solving-solver.csv b/doc/configtables/solving-solver.csv index 3eae6310..e9146dfc 100644 --- a/doc/configtables/solving-solver.csv +++ b/doc/configtables/solving-solver.csv @@ -1,3 +1,3 @@ ,Unit,Values,Description name,--,"One of {'gurobi', 'cplex', 'cbc', 'glpk', 'ipopt'}; potentially more possible","Solver to use for optimisation problems in the workflow; e.g. clustering and linear optimal power flow." -opts,--,"Parameter list for `Gurobi `_ and `CPLEX `_","Solver specific parameter settings." +opts,--,"Parameter list for `Gurobi `_ and `CPLEX `_","Solver specific parameter settings."