I want to solve a relaxed version of a MILP; I am using docplex.mp. I found LinearRelaxer in docplex.mp.relax_linear , however I keep getting this error message:
model model1: found 1 un-relaxable elements, main cause is logical (e.g. x_25_10_0 -> [b_10_0 >= b_25_0+0.601])
reason: logical: 1772 unrelaxables
def solve(model, **kwargs): lp = LinearRelaxer.make_relaxed_model(model) lp.print_information() sol = lp.solve(log_output=True) if sol is not None: print(sol.solve_details.best_bound) print("solution for a cost {}".format(model.objective_value)) model.print_information() print_solution(model, sol) sol.display() return model.objective_value else: print("* mdl is infeasible") return None