Large and ill-conditioned quadratic convex problem











up vote
1
down vote

favorite












I need to solve a convex quadratic problem numerically:



$min f(x) = frac{1}{2} x^top A x - b^top x$,



where $A$ is a very large and ill-conditioned semi positive definite matrix. Typical conjugate gradient method doesn't work well. SGD is too slow.



I'm looking for a good numerical method with relatively less computational effort.



Any experience or suggestions? Thank you!










share|cite|improve this question




























    up vote
    1
    down vote

    favorite












    I need to solve a convex quadratic problem numerically:



    $min f(x) = frac{1}{2} x^top A x - b^top x$,



    where $A$ is a very large and ill-conditioned semi positive definite matrix. Typical conjugate gradient method doesn't work well. SGD is too slow.



    I'm looking for a good numerical method with relatively less computational effort.



    Any experience or suggestions? Thank you!










    share|cite|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I need to solve a convex quadratic problem numerically:



      $min f(x) = frac{1}{2} x^top A x - b^top x$,



      where $A$ is a very large and ill-conditioned semi positive definite matrix. Typical conjugate gradient method doesn't work well. SGD is too slow.



      I'm looking for a good numerical method with relatively less computational effort.



      Any experience or suggestions? Thank you!










      share|cite|improve this question















      I need to solve a convex quadratic problem numerically:



      $min f(x) = frac{1}{2} x^top A x - b^top x$,



      where $A$ is a very large and ill-conditioned semi positive definite matrix. Typical conjugate gradient method doesn't work well. SGD is too slow.



      I'm looking for a good numerical method with relatively less computational effort.



      Any experience or suggestions? Thank you!







      numerical-linear-algebra






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 18 at 1:23

























      asked Nov 17 at 21:11









      Joe Lacey

      112




      112






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I assume you are looking to minimize $f(x)$, and that $A$ is symmetric and positive semi-definite.




          • If $b notin Null(A)^{perp}$ then there is a vector $v in Null(A)$ such that $b^Tv neq 0$. Without loss of generality assume $b^Tv >0$ (else multiply $v$ by $-1$). Then for all real numbers $theta$ we get:
            $$ f(theta v) = 0 + (theta)(-b^Tv)$$
            so $lim_{thetarightarrowinfty} f(theta v) = -infty$ and no minimizer exists.



          • Else, $b in Null(A)^{perp} = Col(A^T) = Col(A)$. Just find any vector $r$ such that $Ar=b$. Then:
            begin{align}
            frac{1}{2}(x-r)^TA(x-r) &= frac{1}{2}x^TAx - x^TAr + frac{1}{2}r^TAr \
            &= f(x) + frac{1}{2}r^TAr
            end{align}

            and this is clearly minimized at $x^*=r$, so
            $$ f(x^*) = f(r) = -frac{1}{2}r^TAr$$







          In other words, the problem reduces to Gaussian elimination: Find a vector $r$ such that $Ar=b$. If no such $r$ exists then no minimizer exists.






          share|cite|improve this answer























          • I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
            – Joe Lacey
            Nov 18 at 1:25











          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: 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%2f3002808%2flarge-and-ill-conditioned-quadratic-convex-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








          up vote
          0
          down vote













          I assume you are looking to minimize $f(x)$, and that $A$ is symmetric and positive semi-definite.




          • If $b notin Null(A)^{perp}$ then there is a vector $v in Null(A)$ such that $b^Tv neq 0$. Without loss of generality assume $b^Tv >0$ (else multiply $v$ by $-1$). Then for all real numbers $theta$ we get:
            $$ f(theta v) = 0 + (theta)(-b^Tv)$$
            so $lim_{thetarightarrowinfty} f(theta v) = -infty$ and no minimizer exists.



          • Else, $b in Null(A)^{perp} = Col(A^T) = Col(A)$. Just find any vector $r$ such that $Ar=b$. Then:
            begin{align}
            frac{1}{2}(x-r)^TA(x-r) &= frac{1}{2}x^TAx - x^TAr + frac{1}{2}r^TAr \
            &= f(x) + frac{1}{2}r^TAr
            end{align}

            and this is clearly minimized at $x^*=r$, so
            $$ f(x^*) = f(r) = -frac{1}{2}r^TAr$$







          In other words, the problem reduces to Gaussian elimination: Find a vector $r$ such that $Ar=b$. If no such $r$ exists then no minimizer exists.






          share|cite|improve this answer























          • I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
            – Joe Lacey
            Nov 18 at 1:25















          up vote
          0
          down vote













          I assume you are looking to minimize $f(x)$, and that $A$ is symmetric and positive semi-definite.




          • If $b notin Null(A)^{perp}$ then there is a vector $v in Null(A)$ such that $b^Tv neq 0$. Without loss of generality assume $b^Tv >0$ (else multiply $v$ by $-1$). Then for all real numbers $theta$ we get:
            $$ f(theta v) = 0 + (theta)(-b^Tv)$$
            so $lim_{thetarightarrowinfty} f(theta v) = -infty$ and no minimizer exists.



          • Else, $b in Null(A)^{perp} = Col(A^T) = Col(A)$. Just find any vector $r$ such that $Ar=b$. Then:
            begin{align}
            frac{1}{2}(x-r)^TA(x-r) &= frac{1}{2}x^TAx - x^TAr + frac{1}{2}r^TAr \
            &= f(x) + frac{1}{2}r^TAr
            end{align}

            and this is clearly minimized at $x^*=r$, so
            $$ f(x^*) = f(r) = -frac{1}{2}r^TAr$$







          In other words, the problem reduces to Gaussian elimination: Find a vector $r$ such that $Ar=b$. If no such $r$ exists then no minimizer exists.






          share|cite|improve this answer























          • I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
            – Joe Lacey
            Nov 18 at 1:25













          up vote
          0
          down vote










          up vote
          0
          down vote









          I assume you are looking to minimize $f(x)$, and that $A$ is symmetric and positive semi-definite.




          • If $b notin Null(A)^{perp}$ then there is a vector $v in Null(A)$ such that $b^Tv neq 0$. Without loss of generality assume $b^Tv >0$ (else multiply $v$ by $-1$). Then for all real numbers $theta$ we get:
            $$ f(theta v) = 0 + (theta)(-b^Tv)$$
            so $lim_{thetarightarrowinfty} f(theta v) = -infty$ and no minimizer exists.



          • Else, $b in Null(A)^{perp} = Col(A^T) = Col(A)$. Just find any vector $r$ such that $Ar=b$. Then:
            begin{align}
            frac{1}{2}(x-r)^TA(x-r) &= frac{1}{2}x^TAx - x^TAr + frac{1}{2}r^TAr \
            &= f(x) + frac{1}{2}r^TAr
            end{align}

            and this is clearly minimized at $x^*=r$, so
            $$ f(x^*) = f(r) = -frac{1}{2}r^TAr$$







          In other words, the problem reduces to Gaussian elimination: Find a vector $r$ such that $Ar=b$. If no such $r$ exists then no minimizer exists.






          share|cite|improve this answer














          I assume you are looking to minimize $f(x)$, and that $A$ is symmetric and positive semi-definite.




          • If $b notin Null(A)^{perp}$ then there is a vector $v in Null(A)$ such that $b^Tv neq 0$. Without loss of generality assume $b^Tv >0$ (else multiply $v$ by $-1$). Then for all real numbers $theta$ we get:
            $$ f(theta v) = 0 + (theta)(-b^Tv)$$
            so $lim_{thetarightarrowinfty} f(theta v) = -infty$ and no minimizer exists.



          • Else, $b in Null(A)^{perp} = Col(A^T) = Col(A)$. Just find any vector $r$ such that $Ar=b$. Then:
            begin{align}
            frac{1}{2}(x-r)^TA(x-r) &= frac{1}{2}x^TAx - x^TAr + frac{1}{2}r^TAr \
            &= f(x) + frac{1}{2}r^TAr
            end{align}

            and this is clearly minimized at $x^*=r$, so
            $$ f(x^*) = f(r) = -frac{1}{2}r^TAr$$







          In other words, the problem reduces to Gaussian elimination: Find a vector $r$ such that $Ar=b$. If no such $r$ exists then no minimizer exists.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Nov 17 at 22:54

























          answered Nov 17 at 22:49









          Michael

          13.2k11325




          13.2k11325












          • I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
            – Joe Lacey
            Nov 18 at 1:25


















          • I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
            – Joe Lacey
            Nov 18 at 1:25
















          I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
          – Joe Lacey
          Nov 18 at 1:25




          I completely agree with you for theoretical part. The problem is that we are facing a large ill-conditioned matrix. The goal is to find a good approximate solution. I should make the question clearer. Thanks
          – Joe Lacey
          Nov 18 at 1:25


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.


          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%2f3002808%2flarge-and-ill-conditioned-quadratic-convex-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

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?