[Python] MIP start in Gurobi

Discussão em 'Python' iniciado por Stack, Março 14, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to set a MIP start with Gurobi MILP solver. I have a set of binary variables :

    tupledict_m = master.addVars(list_m, name="m", vtype=GRB.BINARY)

    where master is a Gurobi Model, list_m is an tuple of integers. I run the following to set the starting values :

    for i in list_m: tupledict_m.start = bool(m_values)

    where m_values is either 1.0 or 0.0 with float data type. Right after that if I print :print([tupledict_m.start for i in list_m]) I get 1e+101 everywhere. Any idea on why and how to fix that ?

    Continue reading...

Compartilhe esta Página