How to maximize a piecewise linear convex function $f: mathbbR^nto mathbbR$?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












How to maximize a piecewise linear convex function $f: mathbbR^nto mathbbR$? I can see that there are many references for minimizing a piecewise linear convex function but not maximizing such a function. Is this problem so trivial or it is so hard (i.e., NP-hard)? I appreciate it if you could also give a reference/hint for maximizing such functions.







share|cite|improve this question

















  • 2




    If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
    – Erwin Kalvelagen
    Aug 6 at 12:16







  • 1




    Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
    – David M.
    Aug 8 at 2:22














up vote
0
down vote

favorite












How to maximize a piecewise linear convex function $f: mathbbR^nto mathbbR$? I can see that there are many references for minimizing a piecewise linear convex function but not maximizing such a function. Is this problem so trivial or it is so hard (i.e., NP-hard)? I appreciate it if you could also give a reference/hint for maximizing such functions.







share|cite|improve this question

















  • 2




    If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
    – Erwin Kalvelagen
    Aug 6 at 12:16







  • 1




    Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
    – David M.
    Aug 8 at 2:22












up vote
0
down vote

favorite









up vote
0
down vote

favorite











How to maximize a piecewise linear convex function $f: mathbbR^nto mathbbR$? I can see that there are many references for minimizing a piecewise linear convex function but not maximizing such a function. Is this problem so trivial or it is so hard (i.e., NP-hard)? I appreciate it if you could also give a reference/hint for maximizing such functions.







share|cite|improve this question













How to maximize a piecewise linear convex function $f: mathbbR^nto mathbbR$? I can see that there are many references for minimizing a piecewise linear convex function but not maximizing such a function. Is this problem so trivial or it is so hard (i.e., NP-hard)? I appreciate it if you could also give a reference/hint for maximizing such functions.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Aug 6 at 4:11
























asked Aug 6 at 4:06









Opt

446110




446110







  • 2




    If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
    – Erwin Kalvelagen
    Aug 6 at 12:16







  • 1




    Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
    – David M.
    Aug 8 at 2:22












  • 2




    If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
    – Erwin Kalvelagen
    Aug 6 at 12:16







  • 1




    Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
    – David M.
    Aug 8 at 2:22







2




2




If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
– Erwin Kalvelagen
Aug 6 at 12:16





If the problem is no longer convex we use binary or SOS2 variables to model piecewise linear functions. This is used a lot in practice. Multi-dimensional functions that are not separable are difficult however.
– Erwin Kalvelagen
Aug 6 at 12:16





1




1




Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
– David M.
Aug 8 at 2:22




Maximizing a convex function over a convex set is NP-hard in general (and I believe the same holds, even for piecewise linear convex functions)
– David M.
Aug 8 at 2:22










3 Answers
3






active

oldest

votes

















up vote
3
down vote



accepted










Suppose your function is constant everywhere, then everywhere is a maximum.



Suppose it is not a constant and suppose it attains maximum value at $x_0$ with value $M$. Then consider $ x: f(x) < M$, which is a convex set that do not include $x_0$ but $x_0$ is a limit point for the set. If the set is empty, then we have a constant function. Suppose not, it means $x_0$ must be a boundary point, but your domain is unbounded. The maximum doesn't exist.



If your domain is bounded and the function is not constant, check the boundary to look for the maximum value.






share|cite|improve this answer




























    up vote
    1
    down vote













    Convexity implies the epigraph is a convex set. A function with a maximum would imply that small deviations from the maximum would be lower than or equal to the maximum. Taking two points on either side of the maximum. If one of them is not equal to the maximum then the line connecting the two points on either side of the maximum will be less than the maximum so at the point where the maximum is obtained the line would be outside the epigraph contradicting convexity. The only other possibility is that all values are the same, which is to say the function is constant. This class of functions is certainly easy to maximize, so the problem is trivial.






    share|cite|improve this answer




























      up vote
      0
      down vote













      If your problem is to maximize a convex function with no constraints, then the solution is trivially $+infty$, unless the function is constant everywhere, in which case the solution is the constant value.






      share|cite|improve this answer





















        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',
        convertImagesToLinks: true,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        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%2f2873574%2fhow-to-maximize-a-piecewise-linear-convex-function-f-mathbbrn-to-mathbbr%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        3
        down vote



        accepted










        Suppose your function is constant everywhere, then everywhere is a maximum.



        Suppose it is not a constant and suppose it attains maximum value at $x_0$ with value $M$. Then consider $ x: f(x) < M$, which is a convex set that do not include $x_0$ but $x_0$ is a limit point for the set. If the set is empty, then we have a constant function. Suppose not, it means $x_0$ must be a boundary point, but your domain is unbounded. The maximum doesn't exist.



        If your domain is bounded and the function is not constant, check the boundary to look for the maximum value.






        share|cite|improve this answer

























          up vote
          3
          down vote



          accepted










          Suppose your function is constant everywhere, then everywhere is a maximum.



          Suppose it is not a constant and suppose it attains maximum value at $x_0$ with value $M$. Then consider $ x: f(x) < M$, which is a convex set that do not include $x_0$ but $x_0$ is a limit point for the set. If the set is empty, then we have a constant function. Suppose not, it means $x_0$ must be a boundary point, but your domain is unbounded. The maximum doesn't exist.



          If your domain is bounded and the function is not constant, check the boundary to look for the maximum value.






          share|cite|improve this answer























            up vote
            3
            down vote



            accepted







            up vote
            3
            down vote



            accepted






            Suppose your function is constant everywhere, then everywhere is a maximum.



            Suppose it is not a constant and suppose it attains maximum value at $x_0$ with value $M$. Then consider $ x: f(x) < M$, which is a convex set that do not include $x_0$ but $x_0$ is a limit point for the set. If the set is empty, then we have a constant function. Suppose not, it means $x_0$ must be a boundary point, but your domain is unbounded. The maximum doesn't exist.



            If your domain is bounded and the function is not constant, check the boundary to look for the maximum value.






            share|cite|improve this answer













            Suppose your function is constant everywhere, then everywhere is a maximum.



            Suppose it is not a constant and suppose it attains maximum value at $x_0$ with value $M$. Then consider $ x: f(x) < M$, which is a convex set that do not include $x_0$ but $x_0$ is a limit point for the set. If the set is empty, then we have a constant function. Suppose not, it means $x_0$ must be a boundary point, but your domain is unbounded. The maximum doesn't exist.



            If your domain is bounded and the function is not constant, check the boundary to look for the maximum value.







            share|cite|improve this answer













            share|cite|improve this answer



            share|cite|improve this answer











            answered Aug 6 at 4:29









            Siong Thye Goh

            78k134997




            78k134997




















                up vote
                1
                down vote













                Convexity implies the epigraph is a convex set. A function with a maximum would imply that small deviations from the maximum would be lower than or equal to the maximum. Taking two points on either side of the maximum. If one of them is not equal to the maximum then the line connecting the two points on either side of the maximum will be less than the maximum so at the point where the maximum is obtained the line would be outside the epigraph contradicting convexity. The only other possibility is that all values are the same, which is to say the function is constant. This class of functions is certainly easy to maximize, so the problem is trivial.






                share|cite|improve this answer

























                  up vote
                  1
                  down vote













                  Convexity implies the epigraph is a convex set. A function with a maximum would imply that small deviations from the maximum would be lower than or equal to the maximum. Taking two points on either side of the maximum. If one of them is not equal to the maximum then the line connecting the two points on either side of the maximum will be less than the maximum so at the point where the maximum is obtained the line would be outside the epigraph contradicting convexity. The only other possibility is that all values are the same, which is to say the function is constant. This class of functions is certainly easy to maximize, so the problem is trivial.






                  share|cite|improve this answer























                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Convexity implies the epigraph is a convex set. A function with a maximum would imply that small deviations from the maximum would be lower than or equal to the maximum. Taking two points on either side of the maximum. If one of them is not equal to the maximum then the line connecting the two points on either side of the maximum will be less than the maximum so at the point where the maximum is obtained the line would be outside the epigraph contradicting convexity. The only other possibility is that all values are the same, which is to say the function is constant. This class of functions is certainly easy to maximize, so the problem is trivial.






                    share|cite|improve this answer













                    Convexity implies the epigraph is a convex set. A function with a maximum would imply that small deviations from the maximum would be lower than or equal to the maximum. Taking two points on either side of the maximum. If one of them is not equal to the maximum then the line connecting the two points on either side of the maximum will be less than the maximum so at the point where the maximum is obtained the line would be outside the epigraph contradicting convexity. The only other possibility is that all values are the same, which is to say the function is constant. This class of functions is certainly easy to maximize, so the problem is trivial.







                    share|cite|improve this answer













                    share|cite|improve this answer



                    share|cite|improve this answer











                    answered Aug 6 at 4:32









                    CyclotomicField

                    1,3311211




                    1,3311211




















                        up vote
                        0
                        down vote













                        If your problem is to maximize a convex function with no constraints, then the solution is trivially $+infty$, unless the function is constant everywhere, in which case the solution is the constant value.






                        share|cite|improve this answer

























                          up vote
                          0
                          down vote













                          If your problem is to maximize a convex function with no constraints, then the solution is trivially $+infty$, unless the function is constant everywhere, in which case the solution is the constant value.






                          share|cite|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            If your problem is to maximize a convex function with no constraints, then the solution is trivially $+infty$, unless the function is constant everywhere, in which case the solution is the constant value.






                            share|cite|improve this answer













                            If your problem is to maximize a convex function with no constraints, then the solution is trivially $+infty$, unless the function is constant everywhere, in which case the solution is the constant value.







                            share|cite|improve this answer













                            share|cite|improve this answer



                            share|cite|improve this answer











                            answered Aug 6 at 22:59









                            Jonathan Tuck

                            113




                            113






















                                 

                                draft saved


                                draft discarded


























                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873574%2fhow-to-maximize-a-piecewise-linear-convex-function-f-mathbbrn-to-mathbbr%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                What is the equation of a 3D cone with generalised tilt?

                                Color the edges and diagonals of a regular polygon

                                Relationship between determinant of matrix and determinant of adjoint?