Skip to content

Commit

Permalink
Merge pull request #949 from aodenweller/cplexFix
Browse files Browse the repository at this point in the history
Allow CPLEX for MIQP in cluster_network
  • Loading branch information
FabianHofmann authored Feb 27, 2024
2 parents a5f7b11 + 06a777d commit 7e9599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def distribute_clusters(n, n_clusters, focus_weights=None, solver_name="scip"):
m.objective = (clusters * clusters - 2 * clusters * L * n_clusters).sum()
if solver_name == "gurobi":
logging.getLogger("gurobipy").propagate = False
elif solver_name != "scip":
elif solver_name not in ["scip", "cplex"]:
logger.info(
f"The configured solver `{solver_name}` does not support quadratic objectives. Falling back to `scip`."
)
Expand Down

0 comments on commit 7e9599c

Please sign in to comment.