Allow CPELX for MIQP in cluster_network

This commit is contained in:
Adrian Odenweller 2024-02-24 12:10:08 +01:00
parent 9b94d9ddbf
commit 1db30ae63b

View File

@ -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 != "scip" and solver_name != "cplex":
logger.info(
f"The configured solver `{solver_name}` does not support quadratic objectives. Falling back to `scip`."
)