A more general case of assignment problem












1












$begingroup$


Recently I've learned hungarian algorithm for solving the assignment problem, Now I'm curious about how to solve more general problem: for given $n times m$ table select several numbers, maximizing their sum with following constraints: in each row the number of selected numbers is not less than $R_{min}$ and not more than $R_{max}$, and for each column the number of selected numbers is not less than $C_{min}$ and not more than $C_{max}$.



If $R_{min} = R_{max} = 1$ and $C_{min} = C_{max} = 1$ this is the standard assignment problem. But what can we say about more general case? Any ideas about this (maybe, at least in case $R_{min} = R_{max} = R$, $C_{min} = C_{max} = C$)? Any thoughts would be greatly appreciated.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    Recently I've learned hungarian algorithm for solving the assignment problem, Now I'm curious about how to solve more general problem: for given $n times m$ table select several numbers, maximizing their sum with following constraints: in each row the number of selected numbers is not less than $R_{min}$ and not more than $R_{max}$, and for each column the number of selected numbers is not less than $C_{min}$ and not more than $C_{max}$.



    If $R_{min} = R_{max} = 1$ and $C_{min} = C_{max} = 1$ this is the standard assignment problem. But what can we say about more general case? Any ideas about this (maybe, at least in case $R_{min} = R_{max} = R$, $C_{min} = C_{max} = C$)? Any thoughts would be greatly appreciated.










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      Recently I've learned hungarian algorithm for solving the assignment problem, Now I'm curious about how to solve more general problem: for given $n times m$ table select several numbers, maximizing their sum with following constraints: in each row the number of selected numbers is not less than $R_{min}$ and not more than $R_{max}$, and for each column the number of selected numbers is not less than $C_{min}$ and not more than $C_{max}$.



      If $R_{min} = R_{max} = 1$ and $C_{min} = C_{max} = 1$ this is the standard assignment problem. But what can we say about more general case? Any ideas about this (maybe, at least in case $R_{min} = R_{max} = R$, $C_{min} = C_{max} = C$)? Any thoughts would be greatly appreciated.










      share|cite|improve this question









      $endgroup$




      Recently I've learned hungarian algorithm for solving the assignment problem, Now I'm curious about how to solve more general problem: for given $n times m$ table select several numbers, maximizing their sum with following constraints: in each row the number of selected numbers is not less than $R_{min}$ and not more than $R_{max}$, and for each column the number of selected numbers is not less than $C_{min}$ and not more than $C_{max}$.



      If $R_{min} = R_{max} = 1$ and $C_{min} = C_{max} = 1$ this is the standard assignment problem. But what can we say about more general case? Any ideas about this (maybe, at least in case $R_{min} = R_{max} = R$, $C_{min} = C_{max} = C$)? Any thoughts would be greatly appreciated.







      optimization algorithms linear-programming






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked May 13 '16 at 23:14









      SwistackSwistack

      425211




      425211






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          The general case can be modeled as a flow problem in a bipartite graph $G=(V_1cup V_2,E)$, with $|V_1|=n$ and $|V_2|=m$.



          To take into account your constraints, add a source $s$ and link to all vertices of $V_1$, and a sink $t$, linked to all vertices of $V_2$. Impose that the entering flow in each node of $V_1$ is at least $R_{min}$ and at most $R_{max}$, and that the exiting flow from each node of $V_2$ is at least $C_{min}$ and at most $C_{max}$, and you are done.






          share|cite|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fmath.stackexchange.com%2fquestions%2f1784392%2fa-more-general-case-of-assignment-problem%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1












            $begingroup$

            The general case can be modeled as a flow problem in a bipartite graph $G=(V_1cup V_2,E)$, with $|V_1|=n$ and $|V_2|=m$.



            To take into account your constraints, add a source $s$ and link to all vertices of $V_1$, and a sink $t$, linked to all vertices of $V_2$. Impose that the entering flow in each node of $V_1$ is at least $R_{min}$ and at most $R_{max}$, and that the exiting flow from each node of $V_2$ is at least $C_{min}$ and at most $C_{max}$, and you are done.






            share|cite|improve this answer









            $endgroup$


















              1












              $begingroup$

              The general case can be modeled as a flow problem in a bipartite graph $G=(V_1cup V_2,E)$, with $|V_1|=n$ and $|V_2|=m$.



              To take into account your constraints, add a source $s$ and link to all vertices of $V_1$, and a sink $t$, linked to all vertices of $V_2$. Impose that the entering flow in each node of $V_1$ is at least $R_{min}$ and at most $R_{max}$, and that the exiting flow from each node of $V_2$ is at least $C_{min}$ and at most $C_{max}$, and you are done.






              share|cite|improve this answer









              $endgroup$
















                1












                1








                1





                $begingroup$

                The general case can be modeled as a flow problem in a bipartite graph $G=(V_1cup V_2,E)$, with $|V_1|=n$ and $|V_2|=m$.



                To take into account your constraints, add a source $s$ and link to all vertices of $V_1$, and a sink $t$, linked to all vertices of $V_2$. Impose that the entering flow in each node of $V_1$ is at least $R_{min}$ and at most $R_{max}$, and that the exiting flow from each node of $V_2$ is at least $C_{min}$ and at most $C_{max}$, and you are done.






                share|cite|improve this answer









                $endgroup$



                The general case can be modeled as a flow problem in a bipartite graph $G=(V_1cup V_2,E)$, with $|V_1|=n$ and $|V_2|=m$.



                To take into account your constraints, add a source $s$ and link to all vertices of $V_1$, and a sink $t$, linked to all vertices of $V_2$. Impose that the entering flow in each node of $V_1$ is at least $R_{min}$ and at most $R_{max}$, and that the exiting flow from each node of $V_2$ is at least $C_{min}$ and at most $C_{max}$, and you are done.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered May 14 '16 at 2:22









                KuifjeKuifje

                7,2722726




                7,2722726






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics 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%2fmath.stackexchange.com%2fquestions%2f1784392%2fa-more-general-case-of-assignment-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

                    Cabo Verde

                    Gyllenstierna

                    Karlovacs län