Let $S$ be a set of ordered vectors. Find $min_{x in S} | y-x|$. Find closest ordered vector.












1












$begingroup$


Let
$S={ (x_1,x_2,x_3,) : x_1 le x_2 le x_3 }$



For a given by ${bf y}$ how to solve the following problem
begin{align}
min_{ {bf x} in S} | {bf y}-{bf x}|
end{align}



The question asks what is the closest ordered vector any other vector.



If ${bf y} in S$, then the minimizer is given by ${bf x}={bf y}$. Therefore, the interesting case occurs when ${bf y} in S^c$.










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    Let
    $S={ (x_1,x_2,x_3,) : x_1 le x_2 le x_3 }$



    For a given by ${bf y}$ how to solve the following problem
    begin{align}
    min_{ {bf x} in S} | {bf y}-{bf x}|
    end{align}



    The question asks what is the closest ordered vector any other vector.



    If ${bf y} in S$, then the minimizer is given by ${bf x}={bf y}$. Therefore, the interesting case occurs when ${bf y} in S^c$.










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      Let
      $S={ (x_1,x_2,x_3,) : x_1 le x_2 le x_3 }$



      For a given by ${bf y}$ how to solve the following problem
      begin{align}
      min_{ {bf x} in S} | {bf y}-{bf x}|
      end{align}



      The question asks what is the closest ordered vector any other vector.



      If ${bf y} in S$, then the minimizer is given by ${bf x}={bf y}$. Therefore, the interesting case occurs when ${bf y} in S^c$.










      share|cite|improve this question









      $endgroup$




      Let
      $S={ (x_1,x_2,x_3,) : x_1 le x_2 le x_3 }$



      For a given by ${bf y}$ how to solve the following problem
      begin{align}
      min_{ {bf x} in S} | {bf y}-{bf x}|
      end{align}



      The question asks what is the closest ordered vector any other vector.



      If ${bf y} in S$, then the minimizer is given by ${bf x}={bf y}$. Therefore, the interesting case occurs when ${bf y} in S^c$.







      geometry optimization euclidean-geometry






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 20 '18 at 1:31









      LisaLisa

      643313




      643313






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          I think the solution should start with an observation that solution to your problem, for any $mathbf{y}notin S$, should be $mathbf{x}$ with $x_{1}=x_{2}=x_{3}$ (suppose not, then one can improve on the objective of the $min$ problem).



          With that, I think you are looking for a solution to $min_{z}sqrt{(y_{1}-z)^{2}+(y_{2}-z)^{2}+(y_{3}-z)^{2}}$, which is probably $(y_{1}+y_{2}+y_{3})/3$?






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
            $endgroup$
            – Lisa
            Dec 20 '18 at 1:49












          • $begingroup$
            Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
            $endgroup$
            – Jan
            Dec 20 '18 at 1:52











          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%2f3047051%2flet-s-be-a-set-of-ordered-vectors-find-min-x-in-s-y-x-find-closes%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









          0












          $begingroup$

          I think the solution should start with an observation that solution to your problem, for any $mathbf{y}notin S$, should be $mathbf{x}$ with $x_{1}=x_{2}=x_{3}$ (suppose not, then one can improve on the objective of the $min$ problem).



          With that, I think you are looking for a solution to $min_{z}sqrt{(y_{1}-z)^{2}+(y_{2}-z)^{2}+(y_{3}-z)^{2}}$, which is probably $(y_{1}+y_{2}+y_{3})/3$?






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
            $endgroup$
            – Lisa
            Dec 20 '18 at 1:49












          • $begingroup$
            Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
            $endgroup$
            – Jan
            Dec 20 '18 at 1:52
















          0












          $begingroup$

          I think the solution should start with an observation that solution to your problem, for any $mathbf{y}notin S$, should be $mathbf{x}$ with $x_{1}=x_{2}=x_{3}$ (suppose not, then one can improve on the objective of the $min$ problem).



          With that, I think you are looking for a solution to $min_{z}sqrt{(y_{1}-z)^{2}+(y_{2}-z)^{2}+(y_{3}-z)^{2}}$, which is probably $(y_{1}+y_{2}+y_{3})/3$?






          share|cite|improve this answer









          $endgroup$













          • $begingroup$
            Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
            $endgroup$
            – Lisa
            Dec 20 '18 at 1:49












          • $begingroup$
            Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
            $endgroup$
            – Jan
            Dec 20 '18 at 1:52














          0












          0








          0





          $begingroup$

          I think the solution should start with an observation that solution to your problem, for any $mathbf{y}notin S$, should be $mathbf{x}$ with $x_{1}=x_{2}=x_{3}$ (suppose not, then one can improve on the objective of the $min$ problem).



          With that, I think you are looking for a solution to $min_{z}sqrt{(y_{1}-z)^{2}+(y_{2}-z)^{2}+(y_{3}-z)^{2}}$, which is probably $(y_{1}+y_{2}+y_{3})/3$?






          share|cite|improve this answer









          $endgroup$



          I think the solution should start with an observation that solution to your problem, for any $mathbf{y}notin S$, should be $mathbf{x}$ with $x_{1}=x_{2}=x_{3}$ (suppose not, then one can improve on the objective of the $min$ problem).



          With that, I think you are looking for a solution to $min_{z}sqrt{(y_{1}-z)^{2}+(y_{2}-z)^{2}+(y_{3}-z)^{2}}$, which is probably $(y_{1}+y_{2}+y_{3})/3$?







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 20 '18 at 1:44









          JanJan

          3,455518




          3,455518












          • $begingroup$
            Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
            $endgroup$
            – Lisa
            Dec 20 '18 at 1:49












          • $begingroup$
            Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
            $endgroup$
            – Jan
            Dec 20 '18 at 1:52


















          • $begingroup$
            Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
            $endgroup$
            – Lisa
            Dec 20 '18 at 1:49












          • $begingroup$
            Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
            $endgroup$
            – Jan
            Dec 20 '18 at 1:52
















          $begingroup$
          Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
          $endgroup$
          – Lisa
          Dec 20 '18 at 1:49






          $begingroup$
          Can you elaborate more on why the solution requires $x_1=x_2=x_3$? I don't quite follow that step. Is it because it is a boundary of the set $S$?
          $endgroup$
          – Lisa
          Dec 20 '18 at 1:49














          $begingroup$
          Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
          $endgroup$
          – Jan
          Dec 20 '18 at 1:52




          $begingroup$
          Let me try. Suppose $mathbf{x}=(x_{1},x_{2},x_{3})$ is a solution. Then $mathbf{x}in S$, that is $x_{1}leq x_{2}leq x_{3}$. Suppose, towards a contradiction, that $x_{1}<x_{2}$. Then $mathbf{x}'=(x_{1},x_{2}-epsilon,x_{3})$, for some small $epsilon>0$, improves over $mathbf{x}$ in your problem. Similarly for $x_{2}<x_{3}$.
          $endgroup$
          – Jan
          Dec 20 '18 at 1:52


















          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%2f3047051%2flet-s-be-a-set-of-ordered-vectors-find-min-x-in-s-y-x-find-closes%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

          Bressuire

          Cabo Verde

          Gyllenstierna