Skip to main content

Infeasibility when taking minimum of a term that include decision variables

Awaiting user input


1 comment

  • Ronald van der Velden
    Gurobi Staff Gurobi Staff

    Hi Margot,

    While I am still thinking about ways to formulate the minimum-constraint, I'm also wondering if x(i,k) + y(k) <= 1 is really what you want. My interpretation of the problem is that you want to guarantee that customers are not assigned to locker locations that are relatively far away (compared to the locker location that is most closeby and selected by the model). In that case, wouldn't you just require x(i,k)=0? You probably have another constraint that says x(i,k) <= y(k) for every combination (i,k) irrespective of distances. So constraint 3 maybe doesn't need to link x and y variables anymore.

    Kind regards,


Please sign in to leave a comment.