Adding text inside combined columns of a tableHow to merge columns in a table?p,m and b columns in...

How to move the player while also allowing forces to affect it

Crop image to path created in TikZ?

How can I add custom success page

New order #4: World

What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?

Can I legally use front facing blue light in the UK?

Unbreakable Formation vs. Cry of the Carnarium

Why doesn't a const reference extend the life of a temporary object passed via a function?

Some basic questions on halt and move in Turing machines

Is "plugging out" electronic devices an American expression?

Information to fellow intern about hiring?

Is domain driven design an anti-SQL pattern?

Are cabin dividers used to "hide" the flex of the airplane?

Doomsday-clock for my fantasy planet

Could a US political party gain complete control over the government by removing checks & balances?

Eliminate empty elements from a list with a specific pattern

extract characters between two commas?

How to deal with fear of taking dependencies

Synthetic Control Method

Is it possible to make sharp wind that can cut stuff from afar?

Shall I use personal or official e-mail account when registering to external websites for work purpose?

Is there a way to make member function NOT callable from constructor?

Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?

How many letters suffice to construct words with no repetition?



Adding text inside combined columns of a table


How to merge columns in a table?p,m and b columns in tablesTable getting rotated by 90 degreesAdding space between columns in a tableAdding Columns to a TableAdding color to table columns with alignmentHow to create table with inner columns inside larger columns?Adding a list inside of a tableRotate text inside table and align it to the centre of combined rowstext and figure inside tableAdding 3 multi-columns upside in a tableadding columns in tableAdding column to table in Latex and optimizing columns width













3















enter image description hereI combined 2 columns in the last row. How do I make the text in the form of bullets, start from the beginning of the row and not leave so much blank space? Also, how do I get rid of the space at the bottom of a row? Thanks in advance!



documentclass[8pt]{article}
usepackage{array}
usepackage{pdflscape}
usepackage{comment}
usepackage{graphicx}
usepackage{easytable}
usepackage{amsmath}
usepackage{amssymb}
usepackage{mathtools}
usepackage{rotating}
usepackage{makecell}
usepackage{multirow}
usepackage{booktabs}
usepackage{multirow,hhline,graphicx,array}
usepackage[margin=0.5in]{geometry}

%DeclareMathSizes{8}{16}{16}{8}

newcommand{x}{mathbf{x}}
newcommand{g}{mathbf{g}}
newcommand{h}{mathbf{h}}
newcommand{}{mathbf{0}} %<- that's not a good idea
newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}

begin{document}
aboverulesep=0ex
belowrulesep=0ex
%renewcommand{arraystretch}{5}
newgeometry{margin=0.1cm}
begin{landscape}
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begin{table}[htbp]
centering
caption{Add caption}
begin{tabular}{|p{0.7em}| p{0.7em}|p{20em}|p{21em}|p{21em}|}
cmidrule{3-5} multicolumn{1}{c}{}
&
&
makecell{textbf{Unconstrained} \ $underset{xinmathbb{R}^n}
{mathrm{minimize}} f(x)$}
&
makecell{textbf{Constrained: Reduced Form} \
$underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
$mathrm{subject to } h(x)= $}
&
makecell{textbf{Constrained: Lagrangian Form} \
$underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
$mathrm{subject to } h(x)=,g(x)leq$ }
\
midrule
multirow{2}{*}{rotatebox[origin=r]{90}{makecell{Local Optimality
Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}} & multicolumn{1}{p{0.7em}|}
{rotatebox[origin=r]{90}{ First Order Necessary~~~~~~ }}
&
At a local minimizer, the gradient of the objective function must be zero
[
nabla f(x_dagger)=
]
&
At a local minimizer, the reduced gradient must be zero if $partial
h/partial s$ is invertible.
[
nabla_d f_R (x_{dagger})=0
]
[
h(x_{dagger})=0
]
[
text{where } x= begin{bmatrix}
d\s
end{bmatrix}
,nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
{partial s} bigg( frac{partial h}{partial s} bigg )^{-1}frac{partial
h}{partial d}
]
&
At a local minimizer, the KKT conditions must be satisfied if the point is
regular (i.e.: if the linear independence constraint qualification (LICQ) is
satisfied: if $nabla h_{dagger}(x_{*})$ has independent rows).
[
nabla _x L(x_{dagger})=0
]
[
h(x_{dagger})=0,g(x_{dagger})≤0
]
[
mu_{dagger}^⊤ g(x_{dagger})=0
]
[
mu_{dagger}≥0
]
[
text{where } L(x_{dagger})=f(x_{dagger})+lambda^⊤ h(x_{dagger})+μ^⊤
g(x_{dagger})
]
\
cmidrule{2-5} multicolumn{1}{|c|}{}
&
multicolumn{1}{p{0.7em}|}{rotatebox[origin=r]{90}{ Second Order
Sufficiency~~~~~~~~ }}
&
If the Hessian of the objective function is positive definite at a point
where the gradient is zero, the point is a local minimum.
[
partial x^Tnabla^2f(x_{*})partial x>0
]
[
forall partial x neq 0
]
A Hessian matrix is positive definite if all of its eigenvalues are
positive.
&
If the reduced Hessian is positive definite at a point where the reduced
gradient is zero, the point is a local minimum.
[
partial d^⊤ nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0
]
[
text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
A^{T}+ frac{partial f}{partial s} frac{partial ^2 s}{partial d^2}
]
[
A=
bigg[
I hspace{2mm}bigg({frac{partial s}{partial d}bigg)}^T
bigg]
, frac{partial^2 s}{partial d^2} =-bigg(frac{partial h}{partial
s}bigg)^{-1} A frac{partial^2 h}{partial x^2} A^{T}
]
&
If the Hessian of the Lagrangian is positive definite on the subspace
tangent to the active constraints at a KKT point, the point is a local
minimum.
[
partial x^Tnabla^2_x L(x_{*})partial x>0
]
[
forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0
]
[
text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
j:mu_j>0]^T
]
A Hessian matrix is positive definite on the subspace tangent to the
active constraints if the last n-m leading principle minors of the
bordered Hessian $begin{bmatrix}
0 & nabla h\ nabla h^T & nabla^2_x L
end{bmatrix}$have sign $(-1)^m$, where m is the number of active
constraints.
\
midrule
multicolumn{1}{|p{1.4em}|}{rotatebox[origin=r]{90}{makecell{ Global Optimality Conditions~~~~~~~} }}
&
multicolumn{1}{p{1.4em}|}{rotatebox[origin=r]{90}{makecell{
Convexity~~~~~~~~~~~~~~~~~~}
}}
&
begin{itemize}
item For convex functions, if a point is a local minimum it is also the
global minimum and a local minimizer is also a global minimizer (not
necessarily the only one).
item If the objective function is nonconvex, it may or may not have
multiple local minima.
item A convex function* is a function whose Hessian is positive
semidefinite for all x.
item A Hessian matrix is positive semidefinite if all of its eigenvalues
are nonnegative.
end{itemize}
&
multicolumn{1}{c}{}
&
begin{itemize}
item A convex optimization problem is a problem in negative null form where
f(x) and g(x) are each convex functions and h(x) are affine functions.
item For convex optimization problems, a local minimum is also the global
minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
item A nonconvex optimization problem may or may not have multiple
local minima and/or disconnected feasible regions.
end{itemize}
\
bottomrule
end{tabular}%
label{tab:addlabel}%
end{table}%
end{landscape}
restoregeometry
end{document}









share|improve this question





























    3















    enter image description hereI combined 2 columns in the last row. How do I make the text in the form of bullets, start from the beginning of the row and not leave so much blank space? Also, how do I get rid of the space at the bottom of a row? Thanks in advance!



    documentclass[8pt]{article}
    usepackage{array}
    usepackage{pdflscape}
    usepackage{comment}
    usepackage{graphicx}
    usepackage{easytable}
    usepackage{amsmath}
    usepackage{amssymb}
    usepackage{mathtools}
    usepackage{rotating}
    usepackage{makecell}
    usepackage{multirow}
    usepackage{booktabs}
    usepackage{multirow,hhline,graphicx,array}
    usepackage[margin=0.5in]{geometry}

    %DeclareMathSizes{8}{16}{16}{8}

    newcommand{x}{mathbf{x}}
    newcommand{g}{mathbf{g}}
    newcommand{h}{mathbf{h}}
    newcommand{}{mathbf{0}} %<- that's not a good idea
    newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}

    begin{document}
    aboverulesep=0ex
    belowrulesep=0ex
    %renewcommand{arraystretch}{5}
    newgeometry{margin=0.1cm}
    begin{landscape}
    % Table generated by Excel2LaTeX from sheet 'Sheet1'
    begin{table}[htbp]
    centering
    caption{Add caption}
    begin{tabular}{|p{0.7em}| p{0.7em}|p{20em}|p{21em}|p{21em}|}
    cmidrule{3-5} multicolumn{1}{c}{}
    &
    &
    makecell{textbf{Unconstrained} \ $underset{xinmathbb{R}^n}
    {mathrm{minimize}} f(x)$}
    &
    makecell{textbf{Constrained: Reduced Form} \
    $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
    $mathrm{subject to } h(x)= $}
    &
    makecell{textbf{Constrained: Lagrangian Form} \
    $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
    $mathrm{subject to } h(x)=,g(x)leq$ }
    \
    midrule
    multirow{2}{*}{rotatebox[origin=r]{90}{makecell{Local Optimality
    Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}} & multicolumn{1}{p{0.7em}|}
    {rotatebox[origin=r]{90}{ First Order Necessary~~~~~~ }}
    &
    At a local minimizer, the gradient of the objective function must be zero
    [
    nabla f(x_dagger)=
    ]
    &
    At a local minimizer, the reduced gradient must be zero if $partial
    h/partial s$ is invertible.
    [
    nabla_d f_R (x_{dagger})=0
    ]
    [
    h(x_{dagger})=0
    ]
    [
    text{where } x= begin{bmatrix}
    d\s
    end{bmatrix}
    ,nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
    {partial s} bigg( frac{partial h}{partial s} bigg )^{-1}frac{partial
    h}{partial d}
    ]
    &
    At a local minimizer, the KKT conditions must be satisfied if the point is
    regular (i.e.: if the linear independence constraint qualification (LICQ) is
    satisfied: if $nabla h_{dagger}(x_{*})$ has independent rows).
    [
    nabla _x L(x_{dagger})=0
    ]
    [
    h(x_{dagger})=0,g(x_{dagger})≤0
    ]
    [
    mu_{dagger}^⊤ g(x_{dagger})=0
    ]
    [
    mu_{dagger}≥0
    ]
    [
    text{where } L(x_{dagger})=f(x_{dagger})+lambda^⊤ h(x_{dagger})+μ^⊤
    g(x_{dagger})
    ]
    \
    cmidrule{2-5} multicolumn{1}{|c|}{}
    &
    multicolumn{1}{p{0.7em}|}{rotatebox[origin=r]{90}{ Second Order
    Sufficiency~~~~~~~~ }}
    &
    If the Hessian of the objective function is positive definite at a point
    where the gradient is zero, the point is a local minimum.
    [
    partial x^Tnabla^2f(x_{*})partial x>0
    ]
    [
    forall partial x neq 0
    ]
    A Hessian matrix is positive definite if all of its eigenvalues are
    positive.
    &
    If the reduced Hessian is positive definite at a point where the reduced
    gradient is zero, the point is a local minimum.
    [
    partial d^⊤ nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0
    ]
    [
    text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
    A^{T}+ frac{partial f}{partial s} frac{partial ^2 s}{partial d^2}
    ]
    [
    A=
    bigg[
    I hspace{2mm}bigg({frac{partial s}{partial d}bigg)}^T
    bigg]
    , frac{partial^2 s}{partial d^2} =-bigg(frac{partial h}{partial
    s}bigg)^{-1} A frac{partial^2 h}{partial x^2} A^{T}
    ]
    &
    If the Hessian of the Lagrangian is positive definite on the subspace
    tangent to the active constraints at a KKT point, the point is a local
    minimum.
    [
    partial x^Tnabla^2_x L(x_{*})partial x>0
    ]
    [
    forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0
    ]
    [
    text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
    j:mu_j>0]^T
    ]
    A Hessian matrix is positive definite on the subspace tangent to the
    active constraints if the last n-m leading principle minors of the
    bordered Hessian $begin{bmatrix}
    0 & nabla h\ nabla h^T & nabla^2_x L
    end{bmatrix}$have sign $(-1)^m$, where m is the number of active
    constraints.
    \
    midrule
    multicolumn{1}{|p{1.4em}|}{rotatebox[origin=r]{90}{makecell{ Global Optimality Conditions~~~~~~~} }}
    &
    multicolumn{1}{p{1.4em}|}{rotatebox[origin=r]{90}{makecell{
    Convexity~~~~~~~~~~~~~~~~~~}
    }}
    &
    begin{itemize}
    item For convex functions, if a point is a local minimum it is also the
    global minimum and a local minimizer is also a global minimizer (not
    necessarily the only one).
    item If the objective function is nonconvex, it may or may not have
    multiple local minima.
    item A convex function* is a function whose Hessian is positive
    semidefinite for all x.
    item A Hessian matrix is positive semidefinite if all of its eigenvalues
    are nonnegative.
    end{itemize}
    &
    multicolumn{1}{c}{}
    &
    begin{itemize}
    item A convex optimization problem is a problem in negative null form where
    f(x) and g(x) are each convex functions and h(x) are affine functions.
    item For convex optimization problems, a local minimum is also the global
    minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
    item A nonconvex optimization problem may or may not have multiple
    local minima and/or disconnected feasible regions.
    end{itemize}
    \
    bottomrule
    end{tabular}%
    label{tab:addlabel}%
    end{table}%
    end{landscape}
    restoregeometry
    end{document}









    share|improve this question



























      3












      3








      3








      enter image description hereI combined 2 columns in the last row. How do I make the text in the form of bullets, start from the beginning of the row and not leave so much blank space? Also, how do I get rid of the space at the bottom of a row? Thanks in advance!



      documentclass[8pt]{article}
      usepackage{array}
      usepackage{pdflscape}
      usepackage{comment}
      usepackage{graphicx}
      usepackage{easytable}
      usepackage{amsmath}
      usepackage{amssymb}
      usepackage{mathtools}
      usepackage{rotating}
      usepackage{makecell}
      usepackage{multirow}
      usepackage{booktabs}
      usepackage{multirow,hhline,graphicx,array}
      usepackage[margin=0.5in]{geometry}

      %DeclareMathSizes{8}{16}{16}{8}

      newcommand{x}{mathbf{x}}
      newcommand{g}{mathbf{g}}
      newcommand{h}{mathbf{h}}
      newcommand{}{mathbf{0}} %<- that's not a good idea
      newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}

      begin{document}
      aboverulesep=0ex
      belowrulesep=0ex
      %renewcommand{arraystretch}{5}
      newgeometry{margin=0.1cm}
      begin{landscape}
      % Table generated by Excel2LaTeX from sheet 'Sheet1'
      begin{table}[htbp]
      centering
      caption{Add caption}
      begin{tabular}{|p{0.7em}| p{0.7em}|p{20em}|p{21em}|p{21em}|}
      cmidrule{3-5} multicolumn{1}{c}{}
      &
      &
      makecell{textbf{Unconstrained} \ $underset{xinmathbb{R}^n}
      {mathrm{minimize}} f(x)$}
      &
      makecell{textbf{Constrained: Reduced Form} \
      $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
      $mathrm{subject to } h(x)= $}
      &
      makecell{textbf{Constrained: Lagrangian Form} \
      $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
      $mathrm{subject to } h(x)=,g(x)leq$ }
      \
      midrule
      multirow{2}{*}{rotatebox[origin=r]{90}{makecell{Local Optimality
      Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}} & multicolumn{1}{p{0.7em}|}
      {rotatebox[origin=r]{90}{ First Order Necessary~~~~~~ }}
      &
      At a local minimizer, the gradient of the objective function must be zero
      [
      nabla f(x_dagger)=
      ]
      &
      At a local minimizer, the reduced gradient must be zero if $partial
      h/partial s$ is invertible.
      [
      nabla_d f_R (x_{dagger})=0
      ]
      [
      h(x_{dagger})=0
      ]
      [
      text{where } x= begin{bmatrix}
      d\s
      end{bmatrix}
      ,nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
      {partial s} bigg( frac{partial h}{partial s} bigg )^{-1}frac{partial
      h}{partial d}
      ]
      &
      At a local minimizer, the KKT conditions must be satisfied if the point is
      regular (i.e.: if the linear independence constraint qualification (LICQ) is
      satisfied: if $nabla h_{dagger}(x_{*})$ has independent rows).
      [
      nabla _x L(x_{dagger})=0
      ]
      [
      h(x_{dagger})=0,g(x_{dagger})≤0
      ]
      [
      mu_{dagger}^⊤ g(x_{dagger})=0
      ]
      [
      mu_{dagger}≥0
      ]
      [
      text{where } L(x_{dagger})=f(x_{dagger})+lambda^⊤ h(x_{dagger})+μ^⊤
      g(x_{dagger})
      ]
      \
      cmidrule{2-5} multicolumn{1}{|c|}{}
      &
      multicolumn{1}{p{0.7em}|}{rotatebox[origin=r]{90}{ Second Order
      Sufficiency~~~~~~~~ }}
      &
      If the Hessian of the objective function is positive definite at a point
      where the gradient is zero, the point is a local minimum.
      [
      partial x^Tnabla^2f(x_{*})partial x>0
      ]
      [
      forall partial x neq 0
      ]
      A Hessian matrix is positive definite if all of its eigenvalues are
      positive.
      &
      If the reduced Hessian is positive definite at a point where the reduced
      gradient is zero, the point is a local minimum.
      [
      partial d^⊤ nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0
      ]
      [
      text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
      A^{T}+ frac{partial f}{partial s} frac{partial ^2 s}{partial d^2}
      ]
      [
      A=
      bigg[
      I hspace{2mm}bigg({frac{partial s}{partial d}bigg)}^T
      bigg]
      , frac{partial^2 s}{partial d^2} =-bigg(frac{partial h}{partial
      s}bigg)^{-1} A frac{partial^2 h}{partial x^2} A^{T}
      ]
      &
      If the Hessian of the Lagrangian is positive definite on the subspace
      tangent to the active constraints at a KKT point, the point is a local
      minimum.
      [
      partial x^Tnabla^2_x L(x_{*})partial x>0
      ]
      [
      forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0
      ]
      [
      text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
      j:mu_j>0]^T
      ]
      A Hessian matrix is positive definite on the subspace tangent to the
      active constraints if the last n-m leading principle minors of the
      bordered Hessian $begin{bmatrix}
      0 & nabla h\ nabla h^T & nabla^2_x L
      end{bmatrix}$have sign $(-1)^m$, where m is the number of active
      constraints.
      \
      midrule
      multicolumn{1}{|p{1.4em}|}{rotatebox[origin=r]{90}{makecell{ Global Optimality Conditions~~~~~~~} }}
      &
      multicolumn{1}{p{1.4em}|}{rotatebox[origin=r]{90}{makecell{
      Convexity~~~~~~~~~~~~~~~~~~}
      }}
      &
      begin{itemize}
      item For convex functions, if a point is a local minimum it is also the
      global minimum and a local minimizer is also a global minimizer (not
      necessarily the only one).
      item If the objective function is nonconvex, it may or may not have
      multiple local minima.
      item A convex function* is a function whose Hessian is positive
      semidefinite for all x.
      item A Hessian matrix is positive semidefinite if all of its eigenvalues
      are nonnegative.
      end{itemize}
      &
      multicolumn{1}{c}{}
      &
      begin{itemize}
      item A convex optimization problem is a problem in negative null form where
      f(x) and g(x) are each convex functions and h(x) are affine functions.
      item For convex optimization problems, a local minimum is also the global
      minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
      item A nonconvex optimization problem may or may not have multiple
      local minima and/or disconnected feasible regions.
      end{itemize}
      \
      bottomrule
      end{tabular}%
      label{tab:addlabel}%
      end{table}%
      end{landscape}
      restoregeometry
      end{document}









      share|improve this question
















      enter image description hereI combined 2 columns in the last row. How do I make the text in the form of bullets, start from the beginning of the row and not leave so much blank space? Also, how do I get rid of the space at the bottom of a row? Thanks in advance!



      documentclass[8pt]{article}
      usepackage{array}
      usepackage{pdflscape}
      usepackage{comment}
      usepackage{graphicx}
      usepackage{easytable}
      usepackage{amsmath}
      usepackage{amssymb}
      usepackage{mathtools}
      usepackage{rotating}
      usepackage{makecell}
      usepackage{multirow}
      usepackage{booktabs}
      usepackage{multirow,hhline,graphicx,array}
      usepackage[margin=0.5in]{geometry}

      %DeclareMathSizes{8}{16}{16}{8}

      newcommand{x}{mathbf{x}}
      newcommand{g}{mathbf{g}}
      newcommand{h}{mathbf{h}}
      newcommand{}{mathbf{0}} %<- that's not a good idea
      newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}

      begin{document}
      aboverulesep=0ex
      belowrulesep=0ex
      %renewcommand{arraystretch}{5}
      newgeometry{margin=0.1cm}
      begin{landscape}
      % Table generated by Excel2LaTeX from sheet 'Sheet1'
      begin{table}[htbp]
      centering
      caption{Add caption}
      begin{tabular}{|p{0.7em}| p{0.7em}|p{20em}|p{21em}|p{21em}|}
      cmidrule{3-5} multicolumn{1}{c}{}
      &
      &
      makecell{textbf{Unconstrained} \ $underset{xinmathbb{R}^n}
      {mathrm{minimize}} f(x)$}
      &
      makecell{textbf{Constrained: Reduced Form} \
      $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
      $mathrm{subject to } h(x)= $}
      &
      makecell{textbf{Constrained: Lagrangian Form} \
      $underset{xinmathbb{R}^n}{mathrm{minimize}} f(x)$ \
      $mathrm{subject to } h(x)=,g(x)leq$ }
      \
      midrule
      multirow{2}{*}{rotatebox[origin=r]{90}{makecell{Local Optimality
      Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}} & multicolumn{1}{p{0.7em}|}
      {rotatebox[origin=r]{90}{ First Order Necessary~~~~~~ }}
      &
      At a local minimizer, the gradient of the objective function must be zero
      [
      nabla f(x_dagger)=
      ]
      &
      At a local minimizer, the reduced gradient must be zero if $partial
      h/partial s$ is invertible.
      [
      nabla_d f_R (x_{dagger})=0
      ]
      [
      h(x_{dagger})=0
      ]
      [
      text{where } x= begin{bmatrix}
      d\s
      end{bmatrix}
      ,nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
      {partial s} bigg( frac{partial h}{partial s} bigg )^{-1}frac{partial
      h}{partial d}
      ]
      &
      At a local minimizer, the KKT conditions must be satisfied if the point is
      regular (i.e.: if the linear independence constraint qualification (LICQ) is
      satisfied: if $nabla h_{dagger}(x_{*})$ has independent rows).
      [
      nabla _x L(x_{dagger})=0
      ]
      [
      h(x_{dagger})=0,g(x_{dagger})≤0
      ]
      [
      mu_{dagger}^⊤ g(x_{dagger})=0
      ]
      [
      mu_{dagger}≥0
      ]
      [
      text{where } L(x_{dagger})=f(x_{dagger})+lambda^⊤ h(x_{dagger})+μ^⊤
      g(x_{dagger})
      ]
      \
      cmidrule{2-5} multicolumn{1}{|c|}{}
      &
      multicolumn{1}{p{0.7em}|}{rotatebox[origin=r]{90}{ Second Order
      Sufficiency~~~~~~~~ }}
      &
      If the Hessian of the objective function is positive definite at a point
      where the gradient is zero, the point is a local minimum.
      [
      partial x^Tnabla^2f(x_{*})partial x>0
      ]
      [
      forall partial x neq 0
      ]
      A Hessian matrix is positive definite if all of its eigenvalues are
      positive.
      &
      If the reduced Hessian is positive definite at a point where the reduced
      gradient is zero, the point is a local minimum.
      [
      partial d^⊤ nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0
      ]
      [
      text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
      A^{T}+ frac{partial f}{partial s} frac{partial ^2 s}{partial d^2}
      ]
      [
      A=
      bigg[
      I hspace{2mm}bigg({frac{partial s}{partial d}bigg)}^T
      bigg]
      , frac{partial^2 s}{partial d^2} =-bigg(frac{partial h}{partial
      s}bigg)^{-1} A frac{partial^2 h}{partial x^2} A^{T}
      ]
      &
      If the Hessian of the Lagrangian is positive definite on the subspace
      tangent to the active constraints at a KKT point, the point is a local
      minimum.
      [
      partial x^Tnabla^2_x L(x_{*})partial x>0
      ]
      [
      forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0
      ]
      [
      text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
      j:mu_j>0]^T
      ]
      A Hessian matrix is positive definite on the subspace tangent to the
      active constraints if the last n-m leading principle minors of the
      bordered Hessian $begin{bmatrix}
      0 & nabla h\ nabla h^T & nabla^2_x L
      end{bmatrix}$have sign $(-1)^m$, where m is the number of active
      constraints.
      \
      midrule
      multicolumn{1}{|p{1.4em}|}{rotatebox[origin=r]{90}{makecell{ Global Optimality Conditions~~~~~~~} }}
      &
      multicolumn{1}{p{1.4em}|}{rotatebox[origin=r]{90}{makecell{
      Convexity~~~~~~~~~~~~~~~~~~}
      }}
      &
      begin{itemize}
      item For convex functions, if a point is a local minimum it is also the
      global minimum and a local minimizer is also a global minimizer (not
      necessarily the only one).
      item If the objective function is nonconvex, it may or may not have
      multiple local minima.
      item A convex function* is a function whose Hessian is positive
      semidefinite for all x.
      item A Hessian matrix is positive semidefinite if all of its eigenvalues
      are nonnegative.
      end{itemize}
      &
      multicolumn{1}{c}{}
      &
      begin{itemize}
      item A convex optimization problem is a problem in negative null form where
      f(x) and g(x) are each convex functions and h(x) are affine functions.
      item For convex optimization problems, a local minimum is also the global
      minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
      item A nonconvex optimization problem may or may not have multiple
      local minima and/or disconnected feasible regions.
      end{itemize}
      \
      bottomrule
      end{tabular}%
      label{tab:addlabel}%
      end{table}%
      end{landscape}
      restoregeometry
      end{document}






      tables






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 22 '18 at 0:17







      Cat

















      asked May 22 '18 at 0:11









      CatCat

      445




      445






















          2 Answers
          2






          active

          oldest

          votes


















          2














          Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:



          documentclass[8pt]{extarticle}
          usepackage{array}
          usepackage{pdflscape}
          usepackage{comment}
          usepackage{graphicx}
          usepackage{easytable}
          usepackage{enumitem}
          usepackage{amssymb}
          usepackage{mathtools, nccmath, esdiff}
          usepackage{rotating}
          usepackage{makecell}
          renewcommand{theadfont}{normalsizebfseries}
          usepackage{booktabs}
          usepackage{multirow,hhline,graphicx,array, caption, tabularx}
          usepackage[margin=0.5in]{geometry}

          newcommand{x}{mathbf{x}}
          newcommand{g}{mathbf{g}}
          newcommand{h}{mathbf{h}}
          newcommand{}{mathbf{0}} %<- that's not a good idea
          newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
          makeatletter
          newcommand*{compress}{@minipagetrue}
          makeatother
          newlength{TXcolwd}

          begin{document}
          aboverulesep=0ex
          belowrulesep=0ex
          renewcommand{theadalign}{tc}
          newgeometry{margin=0.1cm}
          begin{landscape}
          nullvfill
          % Table generated by Excel2LaTeX from sheet 'Sheet1'
          begin{table}[htbp]
          setlist[itemize, 1]{wide=0pt, leftmargin=*, before=compress, after=vspace*{dimexprtopsep-baselineskip}}
          setlength{extrarowheight}{4pt}
          centering
          caption{Add caption}
          begin{tabularx}{linewidth}{|c|c|X|X|X|}% }{|p{0.7em}|p{0.4em}|X|X|X|}% p{0.7em}
          cmidrule{3-5} multicolumn{1}{c}{}
          & & thead{Unconstrained \[1ex] $underset{x in mathbb{R}^n}
          {mathrm{minimize}} f(x)$}
          &
          thead{Constrained: Reduced Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject toenspace} h(x)=
          end{array} $}
          &
          thead{Constrained: Lagrangian Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject to } h(x)=,g(x)leq
          end{array} $ } \
          midrule
          multirowcell{20}{rotatebox{90}{Local Optimality Conditions}}%
          &
          multirowcell{9}{rotatebox{90}{First Order Necessary}}
          &
          At a local minimizer, the gradient of the objective function must be zero
          [ nabla f(x_dagger)= ]
          &
          At a local minimizer, the reduced gradient must be zero if $partial h/partial s$ is invertible. useshortskip
          begin{gather*}
          nabla_d f_R (x_{dagger})=0 \
          h(x_{dagger})=0 \
          text{where } x= begin{bmatrix}
          d\s
          end{bmatrix},:nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
          {partial s} biggl( diffp{h}{s} biggr )^{mkern-6mu-1}diffp{h}{d}
          end{gather*}
          &
          At a local minimizer, the KKT conditions must be satisfied if the point is regular (i.e.: if the linear independence constraint qualification (LICQ) is satisfied: if $ nabla h_{dagger}(x_{*})$ has independent rows).useshortskip
          begin{gather*}
          nabla _x L(x_{dagger})=0 \
          h(x_{dagger})=0,g(x_{dagger}) le 0 \
          mu_{dagger}^T g(x_{dagger})=0 \
          mu_{dagger} ge 0 \
          text{where } L(x_{dagger})=f(x_{dagger})+lambda^T h(x_{dagger})+mu ^T
          g(x_{dagger})
          end{gather*}
          vspace*{dimexpr 1ex-baselineskip} \
          cmidrule{2-5}%
          &
          multirowcell{11}{rotatebox{90}{Second Order Sufficiency}} %
          &
          If the Hessian of the objective function is positive definite at a point where the gradient is zero, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2f(x_{*})partial x>0 \
          forall partial x neq 0
          end{gather*}
          A Hessian matrix is positive definite if all of its eigenvalues are positive.
          &
          If the reduced Hessian is positive definite at a point where the reduced gradient is zero, the point is a local minimum.
          begin{gather*}
          partial d^T nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0 \
          text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
          A^{T}+ diffp{f}{s} diffp[2]{s}{d} \
          A= biggl[
          I hspace{2mm}biggl({diffp{s}{d}biggr)}^T
          biggr],
          frac{partial^2 s}{partial d^2} =-biggl(diffp{h}{s}biggr)^{mkern-6mu -1} A, diffp[2]{h}{x} A^{T}
          end{gather*}
          &
          If the Hessian of the Lagrangian is positive definite on the subspace tangent to the active constraints at a KKT point, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2_x L(x_{*})partial x>0 \
          forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0 \
          text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
          j:mu_j>0]^T
          end{gather*}
          A Hessian matrix is positive definite on the subspace tangent to the active constraints if the last $ n $-$ m $ leading principal minors of the bordered Hessian %
          $begin{bmatrix}
          0 & nabla h\ nabla h^T & nabla^2_x L
          end{bmatrix}$have sign $(-1)^m$, where $ m $ is the number of active
          constraints. smallskip
          \
          midrule
          multirowcell{9}{rotatebox{90}{Global Optimality Conditions}}
          &
          multirowcell{9}{rotatebox{90}{Convexity}}
          & begin{itemize}
          item For convex functions, if a point is a local minimum it is also the global minimum and a local minimizer is also a global minimizer (not necessarily the only one).
          item If the objective function is nonconvex, it may or may not have multiple local minima.
          item A convex function* is a function whose Hessian is positive semidefinite for all x.
          item A Hessian matrix is positive semidefinite if all of its eigenvalues are nonnegative.
          end{itemize}
          &
          multicolumn{2}{p{57em}|}{%
          begin{itemize}
          item A convex optimization problem is a problem in negative null form where f(x) and g(x) are each convex functions and h(x) are affine functions.
          item For convex optimization problems, a local minimum is also the global minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
          item A nonconvex optimization problem may or may not have multiple local minima and/or disconnected feasible regions.
          end{itemize}} \
          bottomrule
          end{tabularx}%
          label{tab:addlabel}%
          end{table}%
          vfill
          end{landscape}
          restoregeometry

          end{document}


          enter image description here






          share|improve this answer


























          • Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

            – Cat
            May 22 '18 at 15:25











          • You're welcome! Feel free to ask.

            – Bernard
            May 22 '18 at 15:27











          • So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

            – Cat
            May 22 '18 at 17:33






          • 1





            Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

            – Bernard
            May 22 '18 at 18:31






          • 1





            @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

            – Bernard
            May 23 '18 at 16:23





















          1














          I think you have to use the multicolumn command differently:



          multicolumn{2}{p{42em}|}{
          begin{itemize}
          item A convex optimization problem is a problem in negative null form
          where f(x) and g(x) are each convex functions and h(x) are affine
          functions.
          item For convex optimization problems, a local minimum is also the global
          minimum, and a local minimizer is also a global minimizer (not necessarily
          the only one).
          item A nonconvex optimization problem may or may not have multiple
          local minima and/or disconnected feasible regions.
          end{itemize}}


          See the documentation or How to merge columns in a table? when in doubt.



          As to the vertical alignment, the column type m should do the trick:
          p,m and b columns in tables






          share|improve this answer


























          • Yes that works! Thank you so much for your help! And thank you also for the links!

            – Cat
            May 22 '18 at 15:26












          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',
          autoActivateHeartbeat: false,
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f432762%2fadding-text-inside-combined-columns-of-a-table%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:



          documentclass[8pt]{extarticle}
          usepackage{array}
          usepackage{pdflscape}
          usepackage{comment}
          usepackage{graphicx}
          usepackage{easytable}
          usepackage{enumitem}
          usepackage{amssymb}
          usepackage{mathtools, nccmath, esdiff}
          usepackage{rotating}
          usepackage{makecell}
          renewcommand{theadfont}{normalsizebfseries}
          usepackage{booktabs}
          usepackage{multirow,hhline,graphicx,array, caption, tabularx}
          usepackage[margin=0.5in]{geometry}

          newcommand{x}{mathbf{x}}
          newcommand{g}{mathbf{g}}
          newcommand{h}{mathbf{h}}
          newcommand{}{mathbf{0}} %<- that's not a good idea
          newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
          makeatletter
          newcommand*{compress}{@minipagetrue}
          makeatother
          newlength{TXcolwd}

          begin{document}
          aboverulesep=0ex
          belowrulesep=0ex
          renewcommand{theadalign}{tc}
          newgeometry{margin=0.1cm}
          begin{landscape}
          nullvfill
          % Table generated by Excel2LaTeX from sheet 'Sheet1'
          begin{table}[htbp]
          setlist[itemize, 1]{wide=0pt, leftmargin=*, before=compress, after=vspace*{dimexprtopsep-baselineskip}}
          setlength{extrarowheight}{4pt}
          centering
          caption{Add caption}
          begin{tabularx}{linewidth}{|c|c|X|X|X|}% }{|p{0.7em}|p{0.4em}|X|X|X|}% p{0.7em}
          cmidrule{3-5} multicolumn{1}{c}{}
          & & thead{Unconstrained \[1ex] $underset{x in mathbb{R}^n}
          {mathrm{minimize}} f(x)$}
          &
          thead{Constrained: Reduced Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject toenspace} h(x)=
          end{array} $}
          &
          thead{Constrained: Lagrangian Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject to } h(x)=,g(x)leq
          end{array} $ } \
          midrule
          multirowcell{20}{rotatebox{90}{Local Optimality Conditions}}%
          &
          multirowcell{9}{rotatebox{90}{First Order Necessary}}
          &
          At a local minimizer, the gradient of the objective function must be zero
          [ nabla f(x_dagger)= ]
          &
          At a local minimizer, the reduced gradient must be zero if $partial h/partial s$ is invertible. useshortskip
          begin{gather*}
          nabla_d f_R (x_{dagger})=0 \
          h(x_{dagger})=0 \
          text{where } x= begin{bmatrix}
          d\s
          end{bmatrix},:nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
          {partial s} biggl( diffp{h}{s} biggr )^{mkern-6mu-1}diffp{h}{d}
          end{gather*}
          &
          At a local minimizer, the KKT conditions must be satisfied if the point is regular (i.e.: if the linear independence constraint qualification (LICQ) is satisfied: if $ nabla h_{dagger}(x_{*})$ has independent rows).useshortskip
          begin{gather*}
          nabla _x L(x_{dagger})=0 \
          h(x_{dagger})=0,g(x_{dagger}) le 0 \
          mu_{dagger}^T g(x_{dagger})=0 \
          mu_{dagger} ge 0 \
          text{where } L(x_{dagger})=f(x_{dagger})+lambda^T h(x_{dagger})+mu ^T
          g(x_{dagger})
          end{gather*}
          vspace*{dimexpr 1ex-baselineskip} \
          cmidrule{2-5}%
          &
          multirowcell{11}{rotatebox{90}{Second Order Sufficiency}} %
          &
          If the Hessian of the objective function is positive definite at a point where the gradient is zero, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2f(x_{*})partial x>0 \
          forall partial x neq 0
          end{gather*}
          A Hessian matrix is positive definite if all of its eigenvalues are positive.
          &
          If the reduced Hessian is positive definite at a point where the reduced gradient is zero, the point is a local minimum.
          begin{gather*}
          partial d^T nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0 \
          text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
          A^{T}+ diffp{f}{s} diffp[2]{s}{d} \
          A= biggl[
          I hspace{2mm}biggl({diffp{s}{d}biggr)}^T
          biggr],
          frac{partial^2 s}{partial d^2} =-biggl(diffp{h}{s}biggr)^{mkern-6mu -1} A, diffp[2]{h}{x} A^{T}
          end{gather*}
          &
          If the Hessian of the Lagrangian is positive definite on the subspace tangent to the active constraints at a KKT point, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2_x L(x_{*})partial x>0 \
          forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0 \
          text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
          j:mu_j>0]^T
          end{gather*}
          A Hessian matrix is positive definite on the subspace tangent to the active constraints if the last $ n $-$ m $ leading principal minors of the bordered Hessian %
          $begin{bmatrix}
          0 & nabla h\ nabla h^T & nabla^2_x L
          end{bmatrix}$have sign $(-1)^m$, where $ m $ is the number of active
          constraints. smallskip
          \
          midrule
          multirowcell{9}{rotatebox{90}{Global Optimality Conditions}}
          &
          multirowcell{9}{rotatebox{90}{Convexity}}
          & begin{itemize}
          item For convex functions, if a point is a local minimum it is also the global minimum and a local minimizer is also a global minimizer (not necessarily the only one).
          item If the objective function is nonconvex, it may or may not have multiple local minima.
          item A convex function* is a function whose Hessian is positive semidefinite for all x.
          item A Hessian matrix is positive semidefinite if all of its eigenvalues are nonnegative.
          end{itemize}
          &
          multicolumn{2}{p{57em}|}{%
          begin{itemize}
          item A convex optimization problem is a problem in negative null form where f(x) and g(x) are each convex functions and h(x) are affine functions.
          item For convex optimization problems, a local minimum is also the global minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
          item A nonconvex optimization problem may or may not have multiple local minima and/or disconnected feasible regions.
          end{itemize}} \
          bottomrule
          end{tabularx}%
          label{tab:addlabel}%
          end{table}%
          vfill
          end{landscape}
          restoregeometry

          end{document}


          enter image description here






          share|improve this answer


























          • Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

            – Cat
            May 22 '18 at 15:25











          • You're welcome! Feel free to ask.

            – Bernard
            May 22 '18 at 15:27











          • So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

            – Cat
            May 22 '18 at 17:33






          • 1





            Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

            – Bernard
            May 22 '18 at 18:31






          • 1





            @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

            – Bernard
            May 23 '18 at 16:23


















          2














          Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:



          documentclass[8pt]{extarticle}
          usepackage{array}
          usepackage{pdflscape}
          usepackage{comment}
          usepackage{graphicx}
          usepackage{easytable}
          usepackage{enumitem}
          usepackage{amssymb}
          usepackage{mathtools, nccmath, esdiff}
          usepackage{rotating}
          usepackage{makecell}
          renewcommand{theadfont}{normalsizebfseries}
          usepackage{booktabs}
          usepackage{multirow,hhline,graphicx,array, caption, tabularx}
          usepackage[margin=0.5in]{geometry}

          newcommand{x}{mathbf{x}}
          newcommand{g}{mathbf{g}}
          newcommand{h}{mathbf{h}}
          newcommand{}{mathbf{0}} %<- that's not a good idea
          newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
          makeatletter
          newcommand*{compress}{@minipagetrue}
          makeatother
          newlength{TXcolwd}

          begin{document}
          aboverulesep=0ex
          belowrulesep=0ex
          renewcommand{theadalign}{tc}
          newgeometry{margin=0.1cm}
          begin{landscape}
          nullvfill
          % Table generated by Excel2LaTeX from sheet 'Sheet1'
          begin{table}[htbp]
          setlist[itemize, 1]{wide=0pt, leftmargin=*, before=compress, after=vspace*{dimexprtopsep-baselineskip}}
          setlength{extrarowheight}{4pt}
          centering
          caption{Add caption}
          begin{tabularx}{linewidth}{|c|c|X|X|X|}% }{|p{0.7em}|p{0.4em}|X|X|X|}% p{0.7em}
          cmidrule{3-5} multicolumn{1}{c}{}
          & & thead{Unconstrained \[1ex] $underset{x in mathbb{R}^n}
          {mathrm{minimize}} f(x)$}
          &
          thead{Constrained: Reduced Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject toenspace} h(x)=
          end{array} $}
          &
          thead{Constrained: Lagrangian Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject to } h(x)=,g(x)leq
          end{array} $ } \
          midrule
          multirowcell{20}{rotatebox{90}{Local Optimality Conditions}}%
          &
          multirowcell{9}{rotatebox{90}{First Order Necessary}}
          &
          At a local minimizer, the gradient of the objective function must be zero
          [ nabla f(x_dagger)= ]
          &
          At a local minimizer, the reduced gradient must be zero if $partial h/partial s$ is invertible. useshortskip
          begin{gather*}
          nabla_d f_R (x_{dagger})=0 \
          h(x_{dagger})=0 \
          text{where } x= begin{bmatrix}
          d\s
          end{bmatrix},:nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
          {partial s} biggl( diffp{h}{s} biggr )^{mkern-6mu-1}diffp{h}{d}
          end{gather*}
          &
          At a local minimizer, the KKT conditions must be satisfied if the point is regular (i.e.: if the linear independence constraint qualification (LICQ) is satisfied: if $ nabla h_{dagger}(x_{*})$ has independent rows).useshortskip
          begin{gather*}
          nabla _x L(x_{dagger})=0 \
          h(x_{dagger})=0,g(x_{dagger}) le 0 \
          mu_{dagger}^T g(x_{dagger})=0 \
          mu_{dagger} ge 0 \
          text{where } L(x_{dagger})=f(x_{dagger})+lambda^T h(x_{dagger})+mu ^T
          g(x_{dagger})
          end{gather*}
          vspace*{dimexpr 1ex-baselineskip} \
          cmidrule{2-5}%
          &
          multirowcell{11}{rotatebox{90}{Second Order Sufficiency}} %
          &
          If the Hessian of the objective function is positive definite at a point where the gradient is zero, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2f(x_{*})partial x>0 \
          forall partial x neq 0
          end{gather*}
          A Hessian matrix is positive definite if all of its eigenvalues are positive.
          &
          If the reduced Hessian is positive definite at a point where the reduced gradient is zero, the point is a local minimum.
          begin{gather*}
          partial d^T nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0 \
          text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
          A^{T}+ diffp{f}{s} diffp[2]{s}{d} \
          A= biggl[
          I hspace{2mm}biggl({diffp{s}{d}biggr)}^T
          biggr],
          frac{partial^2 s}{partial d^2} =-biggl(diffp{h}{s}biggr)^{mkern-6mu -1} A, diffp[2]{h}{x} A^{T}
          end{gather*}
          &
          If the Hessian of the Lagrangian is positive definite on the subspace tangent to the active constraints at a KKT point, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2_x L(x_{*})partial x>0 \
          forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0 \
          text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
          j:mu_j>0]^T
          end{gather*}
          A Hessian matrix is positive definite on the subspace tangent to the active constraints if the last $ n $-$ m $ leading principal minors of the bordered Hessian %
          $begin{bmatrix}
          0 & nabla h\ nabla h^T & nabla^2_x L
          end{bmatrix}$have sign $(-1)^m$, where $ m $ is the number of active
          constraints. smallskip
          \
          midrule
          multirowcell{9}{rotatebox{90}{Global Optimality Conditions}}
          &
          multirowcell{9}{rotatebox{90}{Convexity}}
          & begin{itemize}
          item For convex functions, if a point is a local minimum it is also the global minimum and a local minimizer is also a global minimizer (not necessarily the only one).
          item If the objective function is nonconvex, it may or may not have multiple local minima.
          item A convex function* is a function whose Hessian is positive semidefinite for all x.
          item A Hessian matrix is positive semidefinite if all of its eigenvalues are nonnegative.
          end{itemize}
          &
          multicolumn{2}{p{57em}|}{%
          begin{itemize}
          item A convex optimization problem is a problem in negative null form where f(x) and g(x) are each convex functions and h(x) are affine functions.
          item For convex optimization problems, a local minimum is also the global minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
          item A nonconvex optimization problem may or may not have multiple local minima and/or disconnected feasible regions.
          end{itemize}} \
          bottomrule
          end{tabularx}%
          label{tab:addlabel}%
          end{table}%
          vfill
          end{landscape}
          restoregeometry

          end{document}


          enter image description here






          share|improve this answer


























          • Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

            – Cat
            May 22 '18 at 15:25











          • You're welcome! Feel free to ask.

            – Bernard
            May 22 '18 at 15:27











          • So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

            – Cat
            May 22 '18 at 17:33






          • 1





            Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

            – Bernard
            May 22 '18 at 18:31






          • 1





            @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

            – Bernard
            May 23 '18 at 16:23
















          2












          2








          2







          Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:



          documentclass[8pt]{extarticle}
          usepackage{array}
          usepackage{pdflscape}
          usepackage{comment}
          usepackage{graphicx}
          usepackage{easytable}
          usepackage{enumitem}
          usepackage{amssymb}
          usepackage{mathtools, nccmath, esdiff}
          usepackage{rotating}
          usepackage{makecell}
          renewcommand{theadfont}{normalsizebfseries}
          usepackage{booktabs}
          usepackage{multirow,hhline,graphicx,array, caption, tabularx}
          usepackage[margin=0.5in]{geometry}

          newcommand{x}{mathbf{x}}
          newcommand{g}{mathbf{g}}
          newcommand{h}{mathbf{h}}
          newcommand{}{mathbf{0}} %<- that's not a good idea
          newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
          makeatletter
          newcommand*{compress}{@minipagetrue}
          makeatother
          newlength{TXcolwd}

          begin{document}
          aboverulesep=0ex
          belowrulesep=0ex
          renewcommand{theadalign}{tc}
          newgeometry{margin=0.1cm}
          begin{landscape}
          nullvfill
          % Table generated by Excel2LaTeX from sheet 'Sheet1'
          begin{table}[htbp]
          setlist[itemize, 1]{wide=0pt, leftmargin=*, before=compress, after=vspace*{dimexprtopsep-baselineskip}}
          setlength{extrarowheight}{4pt}
          centering
          caption{Add caption}
          begin{tabularx}{linewidth}{|c|c|X|X|X|}% }{|p{0.7em}|p{0.4em}|X|X|X|}% p{0.7em}
          cmidrule{3-5} multicolumn{1}{c}{}
          & & thead{Unconstrained \[1ex] $underset{x in mathbb{R}^n}
          {mathrm{minimize}} f(x)$}
          &
          thead{Constrained: Reduced Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject toenspace} h(x)=
          end{array} $}
          &
          thead{Constrained: Lagrangian Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject to } h(x)=,g(x)leq
          end{array} $ } \
          midrule
          multirowcell{20}{rotatebox{90}{Local Optimality Conditions}}%
          &
          multirowcell{9}{rotatebox{90}{First Order Necessary}}
          &
          At a local minimizer, the gradient of the objective function must be zero
          [ nabla f(x_dagger)= ]
          &
          At a local minimizer, the reduced gradient must be zero if $partial h/partial s$ is invertible. useshortskip
          begin{gather*}
          nabla_d f_R (x_{dagger})=0 \
          h(x_{dagger})=0 \
          text{where } x= begin{bmatrix}
          d\s
          end{bmatrix},:nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
          {partial s} biggl( diffp{h}{s} biggr )^{mkern-6mu-1}diffp{h}{d}
          end{gather*}
          &
          At a local minimizer, the KKT conditions must be satisfied if the point is regular (i.e.: if the linear independence constraint qualification (LICQ) is satisfied: if $ nabla h_{dagger}(x_{*})$ has independent rows).useshortskip
          begin{gather*}
          nabla _x L(x_{dagger})=0 \
          h(x_{dagger})=0,g(x_{dagger}) le 0 \
          mu_{dagger}^T g(x_{dagger})=0 \
          mu_{dagger} ge 0 \
          text{where } L(x_{dagger})=f(x_{dagger})+lambda^T h(x_{dagger})+mu ^T
          g(x_{dagger})
          end{gather*}
          vspace*{dimexpr 1ex-baselineskip} \
          cmidrule{2-5}%
          &
          multirowcell{11}{rotatebox{90}{Second Order Sufficiency}} %
          &
          If the Hessian of the objective function is positive definite at a point where the gradient is zero, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2f(x_{*})partial x>0 \
          forall partial x neq 0
          end{gather*}
          A Hessian matrix is positive definite if all of its eigenvalues are positive.
          &
          If the reduced Hessian is positive definite at a point where the reduced gradient is zero, the point is a local minimum.
          begin{gather*}
          partial d^T nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0 \
          text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
          A^{T}+ diffp{f}{s} diffp[2]{s}{d} \
          A= biggl[
          I hspace{2mm}biggl({diffp{s}{d}biggr)}^T
          biggr],
          frac{partial^2 s}{partial d^2} =-biggl(diffp{h}{s}biggr)^{mkern-6mu -1} A, diffp[2]{h}{x} A^{T}
          end{gather*}
          &
          If the Hessian of the Lagrangian is positive definite on the subspace tangent to the active constraints at a KKT point, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2_x L(x_{*})partial x>0 \
          forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0 \
          text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
          j:mu_j>0]^T
          end{gather*}
          A Hessian matrix is positive definite on the subspace tangent to the active constraints if the last $ n $-$ m $ leading principal minors of the bordered Hessian %
          $begin{bmatrix}
          0 & nabla h\ nabla h^T & nabla^2_x L
          end{bmatrix}$have sign $(-1)^m$, where $ m $ is the number of active
          constraints. smallskip
          \
          midrule
          multirowcell{9}{rotatebox{90}{Global Optimality Conditions}}
          &
          multirowcell{9}{rotatebox{90}{Convexity}}
          & begin{itemize}
          item For convex functions, if a point is a local minimum it is also the global minimum and a local minimizer is also a global minimizer (not necessarily the only one).
          item If the objective function is nonconvex, it may or may not have multiple local minima.
          item A convex function* is a function whose Hessian is positive semidefinite for all x.
          item A Hessian matrix is positive semidefinite if all of its eigenvalues are nonnegative.
          end{itemize}
          &
          multicolumn{2}{p{57em}|}{%
          begin{itemize}
          item A convex optimization problem is a problem in negative null form where f(x) and g(x) are each convex functions and h(x) are affine functions.
          item For convex optimization problems, a local minimum is also the global minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
          item A nonconvex optimization problem may or may not have multiple local minima and/or disconnected feasible regions.
          end{itemize}} \
          bottomrule
          end{tabularx}%
          label{tab:addlabel}%
          end{table}%
          vfill
          end{landscape}
          restoregeometry

          end{document}


          enter image description here






          share|improve this answer















          Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:



          documentclass[8pt]{extarticle}
          usepackage{array}
          usepackage{pdflscape}
          usepackage{comment}
          usepackage{graphicx}
          usepackage{easytable}
          usepackage{enumitem}
          usepackage{amssymb}
          usepackage{mathtools, nccmath, esdiff}
          usepackage{rotating}
          usepackage{makecell}
          renewcommand{theadfont}{normalsizebfseries}
          usepackage{booktabs}
          usepackage{multirow,hhline,graphicx,array, caption, tabularx}
          usepackage[margin=0.5in]{geometry}

          newcommand{x}{mathbf{x}}
          newcommand{g}{mathbf{g}}
          newcommand{h}{mathbf{h}}
          newcommand{}{mathbf{0}} %<- that's not a good idea
          newcolumntype{M}[1]{>{centeringarraybackslash}m{#1}}
          makeatletter
          newcommand*{compress}{@minipagetrue}
          makeatother
          newlength{TXcolwd}

          begin{document}
          aboverulesep=0ex
          belowrulesep=0ex
          renewcommand{theadalign}{tc}
          newgeometry{margin=0.1cm}
          begin{landscape}
          nullvfill
          % Table generated by Excel2LaTeX from sheet 'Sheet1'
          begin{table}[htbp]
          setlist[itemize, 1]{wide=0pt, leftmargin=*, before=compress, after=vspace*{dimexprtopsep-baselineskip}}
          setlength{extrarowheight}{4pt}
          centering
          caption{Add caption}
          begin{tabularx}{linewidth}{|c|c|X|X|X|}% }{|p{0.7em}|p{0.4em}|X|X|X|}% p{0.7em}
          cmidrule{3-5} multicolumn{1}{c}{}
          & & thead{Unconstrained \[1ex] $underset{x in mathbb{R}^n}
          {mathrm{minimize}} f(x)$}
          &
          thead{Constrained: Reduced Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject toenspace} h(x)=
          end{array} $}
          &
          thead{Constrained: Lagrangian Form \
          $begin{array}{l}underset{x in mathbb{R}^n}{mathrm{minimize}} f(x) \
          mathrm{subject to } h(x)=,g(x)leq
          end{array} $ } \
          midrule
          multirowcell{20}{rotatebox{90}{Local Optimality Conditions}}%
          &
          multirowcell{9}{rotatebox{90}{First Order Necessary}}
          &
          At a local minimizer, the gradient of the objective function must be zero
          [ nabla f(x_dagger)= ]
          &
          At a local minimizer, the reduced gradient must be zero if $partial h/partial s$ is invertible. useshortskip
          begin{gather*}
          nabla_d f_R (x_{dagger})=0 \
          h(x_{dagger})=0 \
          text{where } x= begin{bmatrix}
          d\s
          end{bmatrix},:nabla_d f_R (x_{dagger})=frac{partial f}{partial d}-frac{partial f}
          {partial s} biggl( diffp{h}{s} biggr )^{mkern-6mu-1}diffp{h}{d}
          end{gather*}
          &
          At a local minimizer, the KKT conditions must be satisfied if the point is regular (i.e.: if the linear independence constraint qualification (LICQ) is satisfied: if $ nabla h_{dagger}(x_{*})$ has independent rows).useshortskip
          begin{gather*}
          nabla _x L(x_{dagger})=0 \
          h(x_{dagger})=0,g(x_{dagger}) le 0 \
          mu_{dagger}^T g(x_{dagger})=0 \
          mu_{dagger} ge 0 \
          text{where } L(x_{dagger})=f(x_{dagger})+lambda^T h(x_{dagger})+mu ^T
          g(x_{dagger})
          end{gather*}
          vspace*{dimexpr 1ex-baselineskip} \
          cmidrule{2-5}%
          &
          multirowcell{11}{rotatebox{90}{Second Order Sufficiency}} %
          &
          If the Hessian of the objective function is positive definite at a point where the gradient is zero, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2f(x_{*})partial x>0 \
          forall partial x neq 0
          end{gather*}
          A Hessian matrix is positive definite if all of its eigenvalues are positive.
          &
          If the reduced Hessian is positive definite at a point where the reduced gradient is zero, the point is a local minimum.
          begin{gather*}
          partial d^T nabla_d^2 f_R (x_{*})partial d>0, forall partial d neq 0 \
          text{where }nabla_d^2 f_R (x_{*})=A frac{partial ^2 f}{partial x^2}
          A^{T}+ diffp{f}{s} diffp[2]{s}{d} \
          A= biggl[
          I hspace{2mm}biggl({diffp{s}{d}biggr)}^T
          biggr],
          frac{partial^2 s}{partial d^2} =-biggl(diffp{h}{s}biggr)^{mkern-6mu -1} A, diffp[2]{h}{x} A^{T}
          end{gather*}
          &
          If the Hessian of the Lagrangian is positive definite on the subspace tangent to the active constraints at a KKT point, the point is a local minimum.
          begin{gather*}
          partial x^Tnabla^2_x L(x_{*})partial x>0 \
          forall partial x neq 0: nabla_x h_{dagger}(x_{*})partial x = 0 \
          text{where }h_{dagger}(x_{*}) = [h(x_{*})^T, g_j(x_{*})forall
          j:mu_j>0]^T
          end{gather*}
          A Hessian matrix is positive definite on the subspace tangent to the active constraints if the last $ n $-$ m $ leading principal minors of the bordered Hessian %
          $begin{bmatrix}
          0 & nabla h\ nabla h^T & nabla^2_x L
          end{bmatrix}$have sign $(-1)^m$, where $ m $ is the number of active
          constraints. smallskip
          \
          midrule
          multirowcell{9}{rotatebox{90}{Global Optimality Conditions}}
          &
          multirowcell{9}{rotatebox{90}{Convexity}}
          & begin{itemize}
          item For convex functions, if a point is a local minimum it is also the global minimum and a local minimizer is also a global minimizer (not necessarily the only one).
          item If the objective function is nonconvex, it may or may not have multiple local minima.
          item A convex function* is a function whose Hessian is positive semidefinite for all x.
          item A Hessian matrix is positive semidefinite if all of its eigenvalues are nonnegative.
          end{itemize}
          &
          multicolumn{2}{p{57em}|}{%
          begin{itemize}
          item A convex optimization problem is a problem in negative null form where f(x) and g(x) are each convex functions and h(x) are affine functions.
          item For convex optimization problems, a local minimum is also the global minimum, and a local minimizer is also a global minimizer (not necessarily the only one).
          item A nonconvex optimization problem may or may not have multiple local minima and/or disconnected feasible regions.
          end{itemize}} \
          bottomrule
          end{tabularx}%
          label{tab:addlabel}%
          end{table}%
          vfill
          end{landscape}
          restoregeometry

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday

























          answered May 22 '18 at 11:36









          BernardBernard

          175k778208




          175k778208













          • Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

            – Cat
            May 22 '18 at 15:25











          • You're welcome! Feel free to ask.

            – Bernard
            May 22 '18 at 15:27











          • So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

            – Cat
            May 22 '18 at 17:33






          • 1





            Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

            – Bernard
            May 22 '18 at 18:31






          • 1





            @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

            – Bernard
            May 23 '18 at 16:23





















          • Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

            – Cat
            May 22 '18 at 15:25











          • You're welcome! Feel free to ask.

            – Bernard
            May 22 '18 at 15:27











          • So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

            – Cat
            May 22 '18 at 17:33






          • 1





            Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

            – Bernard
            May 22 '18 at 18:31






          • 1





            @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

            – Bernard
            May 23 '18 at 16:23



















          Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

          – Cat
          May 22 '18 at 15:25





          Thank you so so much! Looks like you fixed everything! I will go through what you did and try to understand, and get back to you if I need to ask something.

          – Cat
          May 22 '18 at 15:25













          You're welcome! Feel free to ask.

          – Bernard
          May 22 '18 at 15:27





          You're welcome! Feel free to ask.

          – Bernard
          May 22 '18 at 15:27













          So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

          – Cat
          May 22 '18 at 17:33





          So I used your code for another similar table that I am making. But this time it rotates the table 90 degrees and leaves a page blank in the beginning. Should I start a new thread for this? Also how do you adjust the size of the columns? What if I don;t want all 3 columns to be the same size? Thank you very much in advance!

          – Cat
          May 22 '18 at 17:33




          1




          1





          Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

          – Bernard
          May 22 '18 at 18:31





          Probably you should post a new thread with a minimal example. Note the values for multirow were found by trial and error, and have to be adjusted for another table. The size of the last three columns should be all equal since they're calculatedx by tabularx so the table fits the text width (there might be an artefact due to the final multicolumn{2}{p{somewidth}}.

          – Bernard
          May 22 '18 at 18:31




          1




          1





          @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

          – Bernard
          May 23 '18 at 16:23







          @Cat: Replace the tabulatx preamble with {|c|c|X|X|>centering arraybackslash}X|} (tested). However, I don't think it looks very nice.

          – Bernard
          May 23 '18 at 16:23













          1














          I think you have to use the multicolumn command differently:



          multicolumn{2}{p{42em}|}{
          begin{itemize}
          item A convex optimization problem is a problem in negative null form
          where f(x) and g(x) are each convex functions and h(x) are affine
          functions.
          item For convex optimization problems, a local minimum is also the global
          minimum, and a local minimizer is also a global minimizer (not necessarily
          the only one).
          item A nonconvex optimization problem may or may not have multiple
          local minima and/or disconnected feasible regions.
          end{itemize}}


          See the documentation or How to merge columns in a table? when in doubt.



          As to the vertical alignment, the column type m should do the trick:
          p,m and b columns in tables






          share|improve this answer


























          • Yes that works! Thank you so much for your help! And thank you also for the links!

            – Cat
            May 22 '18 at 15:26
















          1














          I think you have to use the multicolumn command differently:



          multicolumn{2}{p{42em}|}{
          begin{itemize}
          item A convex optimization problem is a problem in negative null form
          where f(x) and g(x) are each convex functions and h(x) are affine
          functions.
          item For convex optimization problems, a local minimum is also the global
          minimum, and a local minimizer is also a global minimizer (not necessarily
          the only one).
          item A nonconvex optimization problem may or may not have multiple
          local minima and/or disconnected feasible regions.
          end{itemize}}


          See the documentation or How to merge columns in a table? when in doubt.



          As to the vertical alignment, the column type m should do the trick:
          p,m and b columns in tables






          share|improve this answer


























          • Yes that works! Thank you so much for your help! And thank you also for the links!

            – Cat
            May 22 '18 at 15:26














          1












          1








          1







          I think you have to use the multicolumn command differently:



          multicolumn{2}{p{42em}|}{
          begin{itemize}
          item A convex optimization problem is a problem in negative null form
          where f(x) and g(x) are each convex functions and h(x) are affine
          functions.
          item For convex optimization problems, a local minimum is also the global
          minimum, and a local minimizer is also a global minimizer (not necessarily
          the only one).
          item A nonconvex optimization problem may or may not have multiple
          local minima and/or disconnected feasible regions.
          end{itemize}}


          See the documentation or How to merge columns in a table? when in doubt.



          As to the vertical alignment, the column type m should do the trick:
          p,m and b columns in tables






          share|improve this answer















          I think you have to use the multicolumn command differently:



          multicolumn{2}{p{42em}|}{
          begin{itemize}
          item A convex optimization problem is a problem in negative null form
          where f(x) and g(x) are each convex functions and h(x) are affine
          functions.
          item For convex optimization problems, a local minimum is also the global
          minimum, and a local minimizer is also a global minimizer (not necessarily
          the only one).
          item A nonconvex optimization problem may or may not have multiple
          local minima and/or disconnected feasible regions.
          end{itemize}}


          See the documentation or How to merge columns in a table? when in doubt.



          As to the vertical alignment, the column type m should do the trick:
          p,m and b columns in tables







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 22 '18 at 4:38

























          answered May 22 '18 at 4:32









          carlosvalderramacarlosvalderrama

          266129




          266129













          • Yes that works! Thank you so much for your help! And thank you also for the links!

            – Cat
            May 22 '18 at 15:26



















          • Yes that works! Thank you so much for your help! And thank you also for the links!

            – Cat
            May 22 '18 at 15:26

















          Yes that works! Thank you so much for your help! And thank you also for the links!

          – Cat
          May 22 '18 at 15:26





          Yes that works! Thank you so much for your help! And thank you also for the links!

          – Cat
          May 22 '18 at 15:26


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX 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.


          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%2ftex.stackexchange.com%2fquestions%2f432762%2fadding-text-inside-combined-columns-of-a-table%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

          IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

          Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

          Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...