How to display a minimization problem

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











up vote
1
down vote

favorite












I want a space between min and c and I also want the x>0 to be under the other lines, in the center. I have written this:



begincenter
$min c^Txnewline
Ax = bnewline
xgeq0
$
endcenter


enter image description here










share|improve this question









New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • i don' t have errors in my code.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago










  • Put, please, min instead of min. It is very nice because min it is roman in mathmode.
    – Sebastiano
    3 hours ago














up vote
1
down vote

favorite












I want a space between min and c and I also want the x>0 to be under the other lines, in the center. I have written this:



begincenter
$min c^Txnewline
Ax = bnewline
xgeq0
$
endcenter


enter image description here










share|improve this question









New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • i don' t have errors in my code.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago










  • Put, please, min instead of min. It is very nice because min it is roman in mathmode.
    – Sebastiano
    3 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I want a space between min and c and I also want the x>0 to be under the other lines, in the center. I have written this:



begincenter
$min c^Txnewline
Ax = bnewline
xgeq0
$
endcenter


enter image description here










share|improve this question









New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want a space between min and c and I also want the x>0 to be under the other lines, in the center. I have written this:



begincenter
$min c^Txnewline
Ax = bnewline
xgeq0
$
endcenter


enter image description here







math-mode displaystyle






share|improve this question









New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago









CarLaTeX

26.7k444118




26.7k444118






New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 3 hours ago









Μαρια Αγγελιδου

61




61




New contributor




Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Μαρια Αγγελιδου is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • i don' t have errors in my code.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago










  • Put, please, min instead of min. It is very nice because min it is roman in mathmode.
    – Sebastiano
    3 hours ago
















  • i don' t have errors in my code.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago










  • Put, please, min instead of min. It is very nice because min it is roman in mathmode.
    – Sebastiano
    3 hours ago















i don' t have errors in my code.
– ÎœÎ±ÏÎ¹Î± Αγγελιδου
3 hours ago




i don' t have errors in my code.
– ÎœÎ±ÏÎ¹Î± Αγγελιδου
3 hours ago












Put, please, min instead of min. It is very nice because min it is roman in mathmode.
– Sebastiano
3 hours ago




Put, please, min instead of min. It is very nice because min it is roman in mathmode.
– Sebastiano
3 hours ago










3 Answers
3






active

oldest

votes

















up vote
2
down vote













Welcome Μαρία,



Follows a suggested way:



documentclass[12pt,a4paper]article
usepackage[utf8]inputenc
usepackage[LGR]fontenc
usepackageamsmath

begindocument

τεστ

[
min c^Tx
]

[
Ax = b
]

[
xgeq0
]

enddocument


enter image description here






share|improve this answer






















  • Thank you.It is very helpful!
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago










  • And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago











  • Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
    – koleygr
    3 hours ago










  • Please run the code ρε Μαρία as it is... It is already centered.
    – koleygr
    3 hours ago










  • κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
    – ÎœÎ±ÏÎ¹Î± Αγγελιδου
    3 hours ago

















up vote
2
down vote













There is a dedicated package for the layout of optimisation problems optidef, which allows for many variants. Here is an example of what can be done:



documentclass[a4paper, 11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc

usepackageoptidef

begindocument

beginmini|s|[0]
xc^Tx

labeleq:minimizationProblem
addConstraintAx= b
addConstraintx ge 0
endmini

enddocument


enter image description here






share|improve this answer



























    up vote
    0
    down vote













    I will use for this type of construct the option aligned. The formula is centered.



    enter image description here



    documentclass[a4paper,12pt]article
    usepackagemathtools

    begindocument
    [
    beginaligned
    min c^Tx&\
    Ax= b &\
    xgeq0& \
    endaligned
    ]
    enddocument





    share|improve this answer






















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "85"
      ;
      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: 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
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      Μαρια Αγγελιδου is a new contributor. Be nice, and check out our Code of Conduct.









       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457938%2fhow-to-display-a-minimization-problem%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
      2
      down vote













      Welcome Μαρία,



      Follows a suggested way:



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[LGR]fontenc
      usepackageamsmath

      begindocument

      τεστ

      [
      min c^Tx
      ]

      [
      Ax = b
      ]

      [
      xgeq0
      ]

      enddocument


      enter image description here






      share|improve this answer






















      • Thank you.It is very helpful!
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago










      • And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago











      • Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
        – koleygr
        3 hours ago










      • Please run the code ρε Μαρία as it is... It is already centered.
        – koleygr
        3 hours ago










      • κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago














      up vote
      2
      down vote













      Welcome Μαρία,



      Follows a suggested way:



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[LGR]fontenc
      usepackageamsmath

      begindocument

      τεστ

      [
      min c^Tx
      ]

      [
      Ax = b
      ]

      [
      xgeq0
      ]

      enddocument


      enter image description here






      share|improve this answer






















      • Thank you.It is very helpful!
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago










      • And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago











      • Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
        – koleygr
        3 hours ago










      • Please run the code ρε Μαρία as it is... It is already centered.
        – koleygr
        3 hours ago










      • κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago












      up vote
      2
      down vote










      up vote
      2
      down vote









      Welcome Μαρία,



      Follows a suggested way:



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[LGR]fontenc
      usepackageamsmath

      begindocument

      τεστ

      [
      min c^Tx
      ]

      [
      Ax = b
      ]

      [
      xgeq0
      ]

      enddocument


      enter image description here






      share|improve this answer














      Welcome Μαρία,



      Follows a suggested way:



      documentclass[12pt,a4paper]article
      usepackage[utf8]inputenc
      usepackage[LGR]fontenc
      usepackageamsmath

      begindocument

      τεστ

      [
      min c^Tx
      ]

      [
      Ax = b
      ]

      [
      xgeq0
      ]

      enddocument


      enter image description here







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 3 hours ago

























      answered 3 hours ago









      koleygr

      10.4k1836




      10.4k1836











      • Thank you.It is very helpful!
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago










      • And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago











      • Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
        – koleygr
        3 hours ago










      • Please run the code ρε Μαρία as it is... It is already centered.
        – koleygr
        3 hours ago










      • κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago
















      • Thank you.It is very helpful!
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago










      • And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago











      • Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
        – koleygr
        3 hours ago










      • Please run the code ρε Μαρία as it is... It is already centered.
        – koleygr
        3 hours ago










      • κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
        – ÎœÎ±ÏÎ¹Î± Αγγελιδου
        3 hours ago















      Thank you.It is very helpful!
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago




      Thank you.It is very helpful!
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago












      And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago





      And how can i put this in the center of the page? I add the line begincenter but now it doesn`t work.
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago













      Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
      – koleygr
      3 hours ago




      Welcome... Please not that math inside double dollars ($$<math here>$$) or better inside [ and ] willbe printed centered in their own line. between single dollars $<math here>$ or better ( and ) will be printed inline. Also, for min there is a command from amsmath package that I used. But for non declared math commands you have to declare them via the tools of package and for other kind of spaces try , and ; or quad between math expressions.
      – koleygr
      3 hours ago












      Please run the code ρε Μαρία as it is... It is already centered.
      – koleygr
      3 hours ago




      Please run the code ρε Μαρία as it is... It is already centered.
      – koleygr
      3 hours ago












      κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago




      κι έτσι το έτρεξα αλλά πάλι η στοίχιση είναι στ αριστερά.
      – ÎœÎ±ÏÎ¹Î± Αγγελιδου
      3 hours ago










      up vote
      2
      down vote













      There is a dedicated package for the layout of optimisation problems optidef, which allows for many variants. Here is an example of what can be done:



      documentclass[a4paper, 11pt]article
      usepackage[utf8]inputenc
      usepackage[T1]fontenc

      usepackageoptidef

      begindocument

      beginmini|s|[0]
      xc^Tx

      labeleq:minimizationProblem
      addConstraintAx= b
      addConstraintx ge 0
      endmini

      enddocument


      enter image description here






      share|improve this answer
























        up vote
        2
        down vote













        There is a dedicated package for the layout of optimisation problems optidef, which allows for many variants. Here is an example of what can be done:



        documentclass[a4paper, 11pt]article
        usepackage[utf8]inputenc
        usepackage[T1]fontenc

        usepackageoptidef

        begindocument

        beginmini|s|[0]
        xc^Tx

        labeleq:minimizationProblem
        addConstraintAx= b
        addConstraintx ge 0
        endmini

        enddocument


        enter image description here






        share|improve this answer






















          up vote
          2
          down vote










          up vote
          2
          down vote









          There is a dedicated package for the layout of optimisation problems optidef, which allows for many variants. Here is an example of what can be done:



          documentclass[a4paper, 11pt]article
          usepackage[utf8]inputenc
          usepackage[T1]fontenc

          usepackageoptidef

          begindocument

          beginmini|s|[0]
          xc^Tx

          labeleq:minimizationProblem
          addConstraintAx= b
          addConstraintx ge 0
          endmini

          enddocument


          enter image description here






          share|improve this answer












          There is a dedicated package for the layout of optimisation problems optidef, which allows for many variants. Here is an example of what can be done:



          documentclass[a4paper, 11pt]article
          usepackage[utf8]inputenc
          usepackage[T1]fontenc

          usepackageoptidef

          begindocument

          beginmini|s|[0]
          xc^Tx

          labeleq:minimizationProblem
          addConstraintAx= b
          addConstraintx ge 0
          endmini

          enddocument


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          Bernard

          160k766192




          160k766192




















              up vote
              0
              down vote













              I will use for this type of construct the option aligned. The formula is centered.



              enter image description here



              documentclass[a4paper,12pt]article
              usepackagemathtools

              begindocument
              [
              beginaligned
              min c^Tx&\
              Ax= b &\
              xgeq0& \
              endaligned
              ]
              enddocument





              share|improve this answer


























                up vote
                0
                down vote













                I will use for this type of construct the option aligned. The formula is centered.



                enter image description here



                documentclass[a4paper,12pt]article
                usepackagemathtools

                begindocument
                [
                beginaligned
                min c^Tx&\
                Ax= b &\
                xgeq0& \
                endaligned
                ]
                enddocument





                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I will use for this type of construct the option aligned. The formula is centered.



                  enter image description here



                  documentclass[a4paper,12pt]article
                  usepackagemathtools

                  begindocument
                  [
                  beginaligned
                  min c^Tx&\
                  Ax= b &\
                  xgeq0& \
                  endaligned
                  ]
                  enddocument





                  share|improve this answer














                  I will use for this type of construct the option aligned. The formula is centered.



                  enter image description here



                  documentclass[a4paper,12pt]article
                  usepackagemathtools

                  begindocument
                  [
                  beginaligned
                  min c^Tx&\
                  Ax= b &\
                  xgeq0& \
                  endaligned
                  ]
                  enddocument






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 3 hours ago

























                  answered 3 hours ago









                  Sebastiano

                  7,96541654




                  7,96541654




















                      Μαρια Αγγελιδου is a new contributor. Be nice, and check out our Code of Conduct.









                       

                      draft saved


                      draft discarded


















                      Μαρια Αγγελιδου is a new contributor. Be nice, and check out our Code of Conduct.












                      Μαρια Αγγελιδου is a new contributor. Be nice, and check out our Code of Conduct.











                      Μαρια Αγγελιδου is a new contributor. Be nice, and check out our Code of Conduct.













                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457938%2fhow-to-display-a-minimization-problem%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?