メインコンテンツへスキップ

Overlap constraints in java

回答済み

コメント

4件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Ronald van der Velden
    • 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

    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
    • Gurobi-versary
    • 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

投稿コメントは受け付けていません。