Skip to main content

Overlap constraints in java

Answered

Comments

3 comments

  • Ronald van der Velden
    Gurobi Staff Gurobi Staff

    Hi Sergei,

    Have you looked into indicator constraints already? You could create a single binary variable. Then you create one indicator constraint saying if my binary is 0 then constraint 1 must hold. Similarly, you create a second indicator constraint saying if my binary is 1 then constraint 2 must hold.

    If that doesn't work, could you share the relevant part of your code?

    Kind regards,
    Ronald

    0
  • Riley Clement
    Gurobi Staff Gurobi Staff

    It may also be useful to look at a paper showing different formulations for single machine scheduling.  This looks more like a modelling problem than a java problem.

    Keha, Ahmet B., Ketan Khowala, and John W. Fowler. "Mixed integer programming formulations for single machine scheduling problems." Computers & Industrial Engineering 56.1 (2009)
    http://www.lab2.kuis.kyoto-u.ac.jp/~avis/courses/ci/2010/notes/KKF.pdf

    - Riley

    0
  • Sergei Ogai
    First Comment
    First Question

    Hi Ronald, Hi Riley. 
    Thanks for replying, indicator constraints is just the thing I needed!
    I was so focused on trying to influence the binary variables through the expressions that I didn't consider influencing expressions through the variables.

    0

Please sign in to leave a comment.