Skip to content

Commit

Permalink
use solver=None by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ahalev committed Apr 14, 2024
1 parent 20560b8 commit 851514b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymgrid/algos/mpc/mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 851514b

Please sign in to comment.