Best model for precedence constraints within scheduling problemSymmetry-breaking ILP constraints for square binary matrixDealing with non-overlapping constraintsConditional Controls in MIP ModelsAssignment Problem with Decreasing CostsHow to formulate this scheduling problem efficiently?How to reformulate (linearize/convexify) a budgeted assignment problem?What is this type of scheduling problem called?The rationale to improve MTZ?

Photoshop older default brushes

A reccomended structured approach to self studying music theory for songwriting

Does the Temple of the Gods spell nullify critical hits?

What's the relationship betweeen MS-DOS and XENIX?

Which basis does the wavefunction collapse to?

Why don't modern jet engines use forced exhaust mixing?

Compute the square root of a positive integer using binary search

Subgroup generated by a subgroup and a conjugate of it

Quick destruction of a helium filled airship?

Why do so many people play out of turn on the last lead?

May the tower use the runway while an emergency aircraft is inbound?

How do I answer an interview question about how to handle a hard deadline I won't be able to meet?

My new Acer Aspire 7 doesn't have a Legacy Boot option, what can I do to get it?

How to train a replacement without them knowing?

Heyawacky: Ace of Cups

How to change minor radius of a torus in blender 2.8

Why is the battery jumpered to a resistor in this schematic?

Why was ramjet fuel used as hydraulic fluid during Saturn V checkout?

Unconventional examples of mathematical modelling

Are unaudited server logs admissible in a court of law?

Do I need to start off my book by describing the character's "normal world"?

Would getting a natural 20 with a penalty still count as a critical hit?

How do the Durable and Dwarven Fortitude feats interact?

Earliest evidence of objects intended for future archaeologists?



Best model for precedence constraints within scheduling problem


Symmetry-breaking ILP constraints for square binary matrixDealing with non-overlapping constraintsConditional Controls in MIP ModelsAssignment Problem with Decreasing CostsHow to formulate this scheduling problem efficiently?How to reformulate (linearize/convexify) a budgeted assignment problem?What is this type of scheduling problem called?The rationale to improve MTZ?













8












$begingroup$


Suppose I'm modeling a problem where I want to compute the start time bucket for some jobs. All time buckets have equal duration. There are some additional constraints involved but I also have to model some precedence constraints for certain jobs.

Due to the rest of the model I have to use binary variables $s_jt$ that are 1 if job $jin J$ starts in time bucket $tin T$. Suppose I furthermore have a set $P$ of tuples of jobs $(j_1, j_2)in Psubset Jtimes J$ for which the second has to start after the first is finished. Each job $j$ has duration $d_j$, i.e the number of time buckets that are needed to finish the job.



My question is how to model the precedence constraint using the above variables (plus maybe some additional ones) in the most efficient and/or effective way. Meaning I'm interested in the smallest formulation but also in the formulation that gives the tightest bound, respectively the fastest solving times when solved with a MIP solver.










share|improve this question









$endgroup$


















    8












    $begingroup$


    Suppose I'm modeling a problem where I want to compute the start time bucket for some jobs. All time buckets have equal duration. There are some additional constraints involved but I also have to model some precedence constraints for certain jobs.

    Due to the rest of the model I have to use binary variables $s_jt$ that are 1 if job $jin J$ starts in time bucket $tin T$. Suppose I furthermore have a set $P$ of tuples of jobs $(j_1, j_2)in Psubset Jtimes J$ for which the second has to start after the first is finished. Each job $j$ has duration $d_j$, i.e the number of time buckets that are needed to finish the job.



    My question is how to model the precedence constraint using the above variables (plus maybe some additional ones) in the most efficient and/or effective way. Meaning I'm interested in the smallest formulation but also in the formulation that gives the tightest bound, respectively the fastest solving times when solved with a MIP solver.










    share|improve this question









    $endgroup$
















      8












      8








      8





      $begingroup$


      Suppose I'm modeling a problem where I want to compute the start time bucket for some jobs. All time buckets have equal duration. There are some additional constraints involved but I also have to model some precedence constraints for certain jobs.

      Due to the rest of the model I have to use binary variables $s_jt$ that are 1 if job $jin J$ starts in time bucket $tin T$. Suppose I furthermore have a set $P$ of tuples of jobs $(j_1, j_2)in Psubset Jtimes J$ for which the second has to start after the first is finished. Each job $j$ has duration $d_j$, i.e the number of time buckets that are needed to finish the job.



      My question is how to model the precedence constraint using the above variables (plus maybe some additional ones) in the most efficient and/or effective way. Meaning I'm interested in the smallest formulation but also in the formulation that gives the tightest bound, respectively the fastest solving times when solved with a MIP solver.










      share|improve this question









      $endgroup$




      Suppose I'm modeling a problem where I want to compute the start time bucket for some jobs. All time buckets have equal duration. There are some additional constraints involved but I also have to model some precedence constraints for certain jobs.

      Due to the rest of the model I have to use binary variables $s_jt$ that are 1 if job $jin J$ starts in time bucket $tin T$. Suppose I furthermore have a set $P$ of tuples of jobs $(j_1, j_2)in Psubset Jtimes J$ for which the second has to start after the first is finished. Each job $j$ has duration $d_j$, i.e the number of time buckets that are needed to finish the job.



      My question is how to model the precedence constraint using the above variables (plus maybe some additional ones) in the most efficient and/or effective way. Meaning I'm interested in the smallest formulation but also in the formulation that gives the tightest bound, respectively the fastest solving times when solved with a MIP solver.







      mixed-integer-programming modeling scheduling






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 8 hours ago









      JakobSJakobS

      1,2363 silver badges18 bronze badges




      1,2363 silver badges18 bronze badges























          2 Answers
          2






          active

          oldest

          votes


















          7












          $begingroup$

          Can you change the meaning of your variables? A classic trick when you have a lot of precedences is to use the by formulation.



          Let $s'_jt$ be 1 if job $j$ starts by time $t$ (i.e. at time $t$ or before). In that case, your precedence constraint can be formulated as
          $$s'_j_2,t leq s'_j_1,t-d_1$$



          Notice that you can do a change of variables ($s_j,1=s'_j,1$ and $s_j,t =s'_j,t-s'_j,t-1$) to write the remaining constraints with these new variables. You also need to add constraints $s'_j,tleq s'_j,t+1$.



          This usually provide a very tight bound, specially if the number of precedence constraints is very large and the additional constraints are just a few (see [1]).






          share|improve this answer











          $endgroup$














          • $begingroup$
            Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
            $endgroup$
            – JakobS
            7 hours ago










          • $begingroup$
            Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
            $endgroup$
            – Borelian
            7 hours ago











          • $begingroup$
            Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
            $endgroup$
            – JakobS
            7 hours ago


















          5












          $begingroup$

          A straightforward formulation that suffices is to impose conflict constraints of the form $$s_j_1,t_1+s_j_2,t_2le 1$$ if $t_1+d_1>t_2$, but you can strengthen that to $$sum_tge t_1s_j_1,t+sum_tle t_2s_j_2,tle 1.$$






          share|improve this answer









          $endgroup$

















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "700"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2for.stackexchange.com%2fquestions%2f1319%2fbest-model-for-precedence-constraints-within-scheduling-problem%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7












            $begingroup$

            Can you change the meaning of your variables? A classic trick when you have a lot of precedences is to use the by formulation.



            Let $s'_jt$ be 1 if job $j$ starts by time $t$ (i.e. at time $t$ or before). In that case, your precedence constraint can be formulated as
            $$s'_j_2,t leq s'_j_1,t-d_1$$



            Notice that you can do a change of variables ($s_j,1=s'_j,1$ and $s_j,t =s'_j,t-s'_j,t-1$) to write the remaining constraints with these new variables. You also need to add constraints $s'_j,tleq s'_j,t+1$.



            This usually provide a very tight bound, specially if the number of precedence constraints is very large and the additional constraints are just a few (see [1]).






            share|improve this answer











            $endgroup$














            • $begingroup$
              Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
              $endgroup$
              – JakobS
              7 hours ago










            • $begingroup$
              Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
              $endgroup$
              – Borelian
              7 hours ago











            • $begingroup$
              Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
              $endgroup$
              – JakobS
              7 hours ago















            7












            $begingroup$

            Can you change the meaning of your variables? A classic trick when you have a lot of precedences is to use the by formulation.



            Let $s'_jt$ be 1 if job $j$ starts by time $t$ (i.e. at time $t$ or before). In that case, your precedence constraint can be formulated as
            $$s'_j_2,t leq s'_j_1,t-d_1$$



            Notice that you can do a change of variables ($s_j,1=s'_j,1$ and $s_j,t =s'_j,t-s'_j,t-1$) to write the remaining constraints with these new variables. You also need to add constraints $s'_j,tleq s'_j,t+1$.



            This usually provide a very tight bound, specially if the number of precedence constraints is very large and the additional constraints are just a few (see [1]).






            share|improve this answer











            $endgroup$














            • $begingroup$
              Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
              $endgroup$
              – JakobS
              7 hours ago










            • $begingroup$
              Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
              $endgroup$
              – Borelian
              7 hours ago











            • $begingroup$
              Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
              $endgroup$
              – JakobS
              7 hours ago













            7












            7








            7





            $begingroup$

            Can you change the meaning of your variables? A classic trick when you have a lot of precedences is to use the by formulation.



            Let $s'_jt$ be 1 if job $j$ starts by time $t$ (i.e. at time $t$ or before). In that case, your precedence constraint can be formulated as
            $$s'_j_2,t leq s'_j_1,t-d_1$$



            Notice that you can do a change of variables ($s_j,1=s'_j,1$ and $s_j,t =s'_j,t-s'_j,t-1$) to write the remaining constraints with these new variables. You also need to add constraints $s'_j,tleq s'_j,t+1$.



            This usually provide a very tight bound, specially if the number of precedence constraints is very large and the additional constraints are just a few (see [1]).






            share|improve this answer











            $endgroup$



            Can you change the meaning of your variables? A classic trick when you have a lot of precedences is to use the by formulation.



            Let $s'_jt$ be 1 if job $j$ starts by time $t$ (i.e. at time $t$ or before). In that case, your precedence constraint can be formulated as
            $$s'_j_2,t leq s'_j_1,t-d_1$$



            Notice that you can do a change of variables ($s_j,1=s'_j,1$ and $s_j,t =s'_j,t-s'_j,t-1$) to write the remaining constraints with these new variables. You also need to add constraints $s'_j,tleq s'_j,t+1$.



            This usually provide a very tight bound, specially if the number of precedence constraints is very large and the additional constraints are just a few (see [1]).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 7 hours ago

























            answered 7 hours ago









            BorelianBorelian

            1916 bronze badges




            1916 bronze badges














            • $begingroup$
              Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
              $endgroup$
              – JakobS
              7 hours ago










            • $begingroup$
              Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
              $endgroup$
              – Borelian
              7 hours ago











            • $begingroup$
              Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
              $endgroup$
              – JakobS
              7 hours ago
















            • $begingroup$
              Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
              $endgroup$
              – JakobS
              7 hours ago










            • $begingroup$
              Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
              $endgroup$
              – Borelian
              7 hours ago











            • $begingroup$
              Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
              $endgroup$
              – JakobS
              7 hours ago















            $begingroup$
            Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
            $endgroup$
            – JakobS
            7 hours ago




            $begingroup$
            Hi @Borelian, unfortunately this will not work due to the other constraints that I have. But nice to know nonetheless... Might be helpful for other similar problems.
            $endgroup$
            – JakobS
            7 hours ago












            $begingroup$
            Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
            $endgroup$
            – Borelian
            7 hours ago





            $begingroup$
            Yes @jakobs, but note that you can do a change of variables $s_j,t =s'_j,t-s'_j,t-1$ and use the same original constraints but with more terms..
            $endgroup$
            – Borelian
            7 hours ago













            $begingroup$
            Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
            $endgroup$
            – JakobS
            7 hours ago




            $begingroup$
            Ah nice! Did not see that. Can you add this to your answer? It would make it more self-contained...
            $endgroup$
            – JakobS
            7 hours ago











            5












            $begingroup$

            A straightforward formulation that suffices is to impose conflict constraints of the form $$s_j_1,t_1+s_j_2,t_2le 1$$ if $t_1+d_1>t_2$, but you can strengthen that to $$sum_tge t_1s_j_1,t+sum_tle t_2s_j_2,tle 1.$$






            share|improve this answer









            $endgroup$



















              5












              $begingroup$

              A straightforward formulation that suffices is to impose conflict constraints of the form $$s_j_1,t_1+s_j_2,t_2le 1$$ if $t_1+d_1>t_2$, but you can strengthen that to $$sum_tge t_1s_j_1,t+sum_tle t_2s_j_2,tle 1.$$






              share|improve this answer









              $endgroup$

















                5












                5








                5





                $begingroup$

                A straightforward formulation that suffices is to impose conflict constraints of the form $$s_j_1,t_1+s_j_2,t_2le 1$$ if $t_1+d_1>t_2$, but you can strengthen that to $$sum_tge t_1s_j_1,t+sum_tle t_2s_j_2,tle 1.$$






                share|improve this answer









                $endgroup$



                A straightforward formulation that suffices is to impose conflict constraints of the form $$s_j_1,t_1+s_j_2,t_2le 1$$ if $t_1+d_1>t_2$, but you can strengthen that to $$sum_tge t_1s_j_1,t+sum_tle t_2s_j_2,tle 1.$$







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                Rob PrattRob Pratt

                1,0221 silver badge10 bronze badges




                1,0221 silver badge10 bronze badges






























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Operations Research Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2for.stackexchange.com%2fquestions%2f1319%2fbest-model-for-precedence-constraints-within-scheduling-problem%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її