flow problem GUROBI PYTHON

0
    # flujo stamina
for i in Equipos:
        for j in Equipos:
            for c in Canchas:
                for g in Grupos:
                    for t in Modulos:
                        if i != j and g1 == g2 and (i in tabla_grupos[g1] == True) and (
                                j in tabla_grupos[g2] == True):
                            if t == Modulos[0]:
                                model.addConstr(100 - y_nmct[i, j, c, t] * tabla_beta[estilo[i]][estilo[j]] + (
                                        1 - y_nmct[i, j, c, t]) * q_nt == s_nt[i, t])
                            else:
                                x = int(1)
                                model.addConstr(
                                    s_nt[i, t] - y_nmct[i, j, c, t] * tabla_beta[estilo[i]][estilo[j]] + (
                                            1 - y_nmct[i, j, c, t]) * q_nt == s_nt[i, Modulos[x + 1]])
    
asked by tonass 10.05.2018 в 03:55
source

0 answers