Skip to main content

What is the most efficient way to generate a random solution from all possible solutions that comply with some constraints in a MIP?

Awaiting user input

Comments

3 comments

  • Eli Towle
    Gurobi Staff Gurobi Staff

    I can't think of a better way to accomplish this task using a MIP. To ensure the solution is random, you need to first enumerate all solutions. In general, enumerating all solutions of a MIP is computationally expensive.

    0
  • Jizhou Lu
    Gurobi-versary
    First Comment
    First Question

    It doesn't have to be completely random but deviates from the optimal solution, if I have an objective function. In the above case, the model picks "n best solutions", which is too biased. Is it possible to address this issue?

    0
  • Eli Towle
    Gurobi Staff Gurobi Staff

    I don't see a way to address this using solution pools. Could you solve the problem repeatedly, perturbing or randomizing the objective function at each iteration to obtain a set of solutions that optimize different objectives? Of course, this approach also does not offer any guarantees about the randomness of solutions.

    0

Please sign in to leave a comment.