From 851514b24f6c73ae7ac613152a397a9a63f1a6f8 Mon Sep 17 00:00:00 2001 From: ahalev Date: Sun, 14 Apr 2024 13:48:47 -0700 Subject: [PATCH] use solver=None by default --- src/pymgrid/algos/mpc/mpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymgrid/algos/mpc/mpc.py b/src/pymgrid/algos/mpc/mpc.py index 23419be8..79a41310 100644 --- a/src/pymgrid/algos/mpc/mpc.py +++ b/src/pymgrid/algos/mpc/mpc.py @@ -376,7 +376,7 @@ def _create_problem(self, eta, battery_capacity, fuel_cost, cost_battery_cycle, def _get_solver(self, failure=False): if not failure: logger.info("Using default solver." if self._passed_solver is None else f"Using {self._passed_solver} solver.") - return self._passed_solver or cp.CLARABEL + return self._passed_solver # failure