Adding text inside combined columns of a tableHow 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
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
What defenses are there against being summoned by the Gate spell?
How to re-create Edward Weson's Pepper No. 30?
How to add power-LED to my small amplifier?
A function which translates a sentence to title-case
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
How old can references or sources in a thesis be?
Find original functions from a composite function
Is there a familial term for apples and pears?
Why is the design of haulage companies so “special”?
declaring a variable twice in IIFE
Why is an old chain unsafe?
The use of multiple foreign keys on same column in SQL Server
Why CLRS example on residual networks does not follows its formula?
Do Phineas and Ferb ever actually get busted in real time?
How can I fix this gap between bookcases I made?
Is there really no realistic way for a skeleton monster to move around without magic?
Why don't electron-positron collisions release infinite energy?
What would happen to a modern skyscraper if it rains micro blackholes?
How to get the available space of $HOME as a variable in shell scripting?
Is it possible to make sharp wind that can cut stuff from afar?
Can I interfere when another PC is about to be attacked?
I probably found a bug with the sudo apt install function
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
I 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
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageamsmath
usepackageamssymb
usepackagemathtools
usepackagerotating
usepackagemakecell
usepackagemultirow
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array
usepackage[margin=0.5in]geometry
%DeclareMathSizes816168
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
begindocument
aboverulesep=0ex
belowrulesep=0ex
%renewcommandarraystretch5
newgeometrymargin=0.1cm
beginlandscape
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
centering
captionAdd caption
begintabularp20em
cmidrule3-5 multicolumn1c
&
&
makecelltextbfUnconstrained \ $undersetxinmathbbR^n
mathrmminimize f(x)$
&
makecelltextbfConstrained: Reduced Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)= $
&
makecelltextbfConstrained: Lagrangian Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)=,g(x)leq$
\
midrule
multirow2*rotatebox[origin=r]90makecellLocal Optimality
Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~ & multicolumn1
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
]
[
textwhere x= beginbmatrix
d\s
endbmatrix
,nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s bigg( fracpartial hpartial s bigg )^-1fracpartial
hpartial 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
]
[
textwhere L(x_dagger)=f(x_dagger)+lambda^⊤ h(x_dagger)+μ^⊤
g(x_dagger)
]
\
cmidrule2-5 multicolumn1c
&
multicolumn1rotatebox[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
]
[
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ fracpartial fpartial s fracpartial ^2 spartial d^2
]
[
A=
bigg[
I hspace2mmbigg(fracpartial spartial dbigg)^T
bigg]
, fracpartial^2 spartial d^2 =-bigg(fracpartial hpartial
sbigg)^-1 A fracpartial^2 hpartial 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
]
[
textwhere 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 $beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where m is the number of active
constraints.
\
midrule
multicolumn1rotatebox[origin=r]90makecell Global Optimality Conditions~~~~~~~
&
multicolumn1p1.4emrotatebox[origin=r]90makecell
Convexity~~~~~~~~~~~~~~~~~~
&
beginitemize
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.
enditemize
&
multicolumn1c
&
beginitemize
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.
enditemize
\
bottomrule
endtabular%
labeltab:addlabel%
endtable%
endlandscape
restoregeometry
enddocument
tables
add a comment |
I 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
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageamsmath
usepackageamssymb
usepackagemathtools
usepackagerotating
usepackagemakecell
usepackagemultirow
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array
usepackage[margin=0.5in]geometry
%DeclareMathSizes816168
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
begindocument
aboverulesep=0ex
belowrulesep=0ex
%renewcommandarraystretch5
newgeometrymargin=0.1cm
beginlandscape
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
centering
captionAdd caption
begintabularp20em
cmidrule3-5 multicolumn1c
&
&
makecelltextbfUnconstrained \ $undersetxinmathbbR^n
mathrmminimize f(x)$
&
makecelltextbfConstrained: Reduced Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)= $
&
makecelltextbfConstrained: Lagrangian Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)=,g(x)leq$
\
midrule
multirow2*rotatebox[origin=r]90makecellLocal Optimality
Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~ & multicolumn1
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
]
[
textwhere x= beginbmatrix
d\s
endbmatrix
,nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s bigg( fracpartial hpartial s bigg )^-1fracpartial
hpartial 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
]
[
textwhere L(x_dagger)=f(x_dagger)+lambda^⊤ h(x_dagger)+μ^⊤
g(x_dagger)
]
\
cmidrule2-5 multicolumn1c
&
multicolumn1rotatebox[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
]
[
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ fracpartial fpartial s fracpartial ^2 spartial d^2
]
[
A=
bigg[
I hspace2mmbigg(fracpartial spartial dbigg)^T
bigg]
, fracpartial^2 spartial d^2 =-bigg(fracpartial hpartial
sbigg)^-1 A fracpartial^2 hpartial 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
]
[
textwhere 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 $beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where m is the number of active
constraints.
\
midrule
multicolumn1rotatebox[origin=r]90makecell Global Optimality Conditions~~~~~~~
&
multicolumn1p1.4emrotatebox[origin=r]90makecell
Convexity~~~~~~~~~~~~~~~~~~
&
beginitemize
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.
enditemize
&
multicolumn1c
&
beginitemize
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.
enditemize
\
bottomrule
endtabular%
labeltab:addlabel%
endtable%
endlandscape
restoregeometry
enddocument
tables
add a comment |
I 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
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageamsmath
usepackageamssymb
usepackagemathtools
usepackagerotating
usepackagemakecell
usepackagemultirow
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array
usepackage[margin=0.5in]geometry
%DeclareMathSizes816168
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
begindocument
aboverulesep=0ex
belowrulesep=0ex
%renewcommandarraystretch5
newgeometrymargin=0.1cm
beginlandscape
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
centering
captionAdd caption
begintabularp20em
cmidrule3-5 multicolumn1c
&
&
makecelltextbfUnconstrained \ $undersetxinmathbbR^n
mathrmminimize f(x)$
&
makecelltextbfConstrained: Reduced Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)= $
&
makecelltextbfConstrained: Lagrangian Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)=,g(x)leq$
\
midrule
multirow2*rotatebox[origin=r]90makecellLocal Optimality
Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~ & multicolumn1
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
]
[
textwhere x= beginbmatrix
d\s
endbmatrix
,nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s bigg( fracpartial hpartial s bigg )^-1fracpartial
hpartial 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
]
[
textwhere L(x_dagger)=f(x_dagger)+lambda^⊤ h(x_dagger)+μ^⊤
g(x_dagger)
]
\
cmidrule2-5 multicolumn1c
&
multicolumn1rotatebox[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
]
[
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ fracpartial fpartial s fracpartial ^2 spartial d^2
]
[
A=
bigg[
I hspace2mmbigg(fracpartial spartial dbigg)^T
bigg]
, fracpartial^2 spartial d^2 =-bigg(fracpartial hpartial
sbigg)^-1 A fracpartial^2 hpartial 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
]
[
textwhere 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 $beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where m is the number of active
constraints.
\
midrule
multicolumn1rotatebox[origin=r]90makecell Global Optimality Conditions~~~~~~~
&
multicolumn1p1.4emrotatebox[origin=r]90makecell
Convexity~~~~~~~~~~~~~~~~~~
&
beginitemize
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.
enditemize
&
multicolumn1c
&
beginitemize
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.
enditemize
\
bottomrule
endtabular%
labeltab:addlabel%
endtable%
endlandscape
restoregeometry
enddocument
tables
I 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
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageamsmath
usepackageamssymb
usepackagemathtools
usepackagerotating
usepackagemakecell
usepackagemultirow
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array
usepackage[margin=0.5in]geometry
%DeclareMathSizes816168
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
begindocument
aboverulesep=0ex
belowrulesep=0ex
%renewcommandarraystretch5
newgeometrymargin=0.1cm
beginlandscape
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
centering
captionAdd caption
begintabularp20em
cmidrule3-5 multicolumn1c
&
&
makecelltextbfUnconstrained \ $undersetxinmathbbR^n
mathrmminimize f(x)$
&
makecelltextbfConstrained: Reduced Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)= $
&
makecelltextbfConstrained: Lagrangian Form \
$undersetxinmathbbR^nmathrmminimize f(x)$ \
$mathrmsubject to h(x)=,g(x)leq$
\
midrule
multirow2*rotatebox[origin=r]90makecellLocal Optimality
Conditions~~~~~~~~~~~~~~~~~~~~~~~~~~~~ & multicolumn1
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
]
[
textwhere x= beginbmatrix
d\s
endbmatrix
,nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s bigg( fracpartial hpartial s bigg )^-1fracpartial
hpartial 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
]
[
textwhere L(x_dagger)=f(x_dagger)+lambda^⊤ h(x_dagger)+μ^⊤
g(x_dagger)
]
\
cmidrule2-5 multicolumn1c
&
multicolumn1rotatebox[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
]
[
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ fracpartial fpartial s fracpartial ^2 spartial d^2
]
[
A=
bigg[
I hspace2mmbigg(fracpartial spartial dbigg)^T
bigg]
, fracpartial^2 spartial d^2 =-bigg(fracpartial hpartial
sbigg)^-1 A fracpartial^2 hpartial 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
]
[
textwhere 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 $beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where m is the number of active
constraints.
\
midrule
multicolumn1rotatebox[origin=r]90makecell Global Optimality Conditions~~~~~~~
&
multicolumn1p1.4emrotatebox[origin=r]90makecell
Convexity~~~~~~~~~~~~~~~~~~
&
beginitemize
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.
enditemize
&
multicolumn1c
&
beginitemize
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.
enditemize
\
bottomrule
endtabular%
labeltab:addlabel%
endtable%
endlandscape
restoregeometry
enddocument
tables
tables
edited May 22 '18 at 0:17
Cat
asked May 22 '18 at 0:11
CatCat
445
445
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:
documentclass[8pt]extarticle
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageenumitem
usepackageamssymb
usepackagemathtools, nccmath, esdiff
usepackagerotating
usepackagemakecell
renewcommandtheadfontnormalsizebfseries
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array, caption, tabularx
usepackage[margin=0.5in]geometry
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
makeatletter
newcommand*compress@minipagetrue
makeatother
newlengthTXcolwd
begindocument
aboverulesep=0ex
belowrulesep=0ex
renewcommandtheadaligntc
newgeometrymargin=0.1cm
beginlandscape
nullvfill
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
setlist[itemize, 1]wide=0pt, leftmargin=*, before=compress, after=vspace*dimexprtopsep-baselineskip
setlengthextrarowheight4pt
centering
captionAdd caption
begintabularxlinewidth% }% p0.7em
cmidrule3-5 multicolumn1c
& & theadUnconstrained \[1ex] $undersetx in mathbbR^n
mathrmminimize f(x)$
&
theadConstrained: Reduced Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject toenspace h(x)=
endarray $
&
theadConstrained: Lagrangian Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject to h(x)=,g(x)leq
endarray $ \
midrule
multirowcell20rotatebox90Local Optimality Conditions%
&
multirowcell9rotatebox90First 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
begingather*
nabla_d f_R (x_dagger)=0 \
h(x_dagger)=0 \
textwhere x= beginbmatrix
d\s
endbmatrix,:nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s biggl( diffphs biggr )^mkern-6mu-1diffphd
endgather*
&
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
begingather*
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 \
textwhere L(x_dagger)=f(x_dagger)+lambda^T h(x_dagger)+mu ^T
g(x_dagger)
endgather*
vspace*dimexpr 1ex-baselineskip \
cmidrule2-5%
&
multirowcell11rotatebox90Second 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.
begingather*
partial x^Tnabla^2f(x_*)partial x>0 \
forall partial x neq 0
endgather*
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.
begingather*
partial d^T nabla_d^2 f_R (x_*)partial d>0, forall partial d neq 0 \
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ diffpfs diffp[2]sd \
A= biggl[
I hspace2mmbiggl(diffpsdbiggr)^T
biggr],
fracpartial^2 spartial d^2 =-biggl(diffphsbiggr)^mkern-6mu -1 A, diffp[2]hx A^T
endgather*
&
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.
begingather*
partial x^Tnabla^2_x L(x_*)partial x>0 \
forall partial x neq 0: nabla_x h_dagger(x_*)partial x = 0 \
textwhere h_dagger(x_*) = [h(x_*)^T, g_j(x_*)forall
j:mu_j>0]^T
endgather*
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 %
$beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where $ m $ is the number of active
constraints. smallskip
\
midrule
multirowcell9rotatebox90Global Optimality Conditions
&
multirowcell9rotatebox90Convexity
& beginitemize
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.
enditemize
&
multicolumn2%
beginitemize
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.
enditemize \
bottomrule
endtabularx%
labeltab:addlabel%
endtable%
vfill
endlandscape
restoregeometry
enddocument

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 formultirowwere 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 bytabularxso the table fits the text width (there might be an artefact due to the finalmulticolumn2psomewidth.
– Bernard
May 22 '18 at 18:31
1
@Cat: Replace the tabulatx preamble withcX|}(tested). However, I don't think it looks very nice.
– Bernard
May 23 '18 at 16:23
|
show 6 more comments
I think you have to use the multicolumn command differently:
multicolumn2p42em
beginitemize
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.
enditemize
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
Yes that works! Thank you so much for your help! And thank you also for the links!
– Cat
May 22 '18 at 15:26
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:
documentclass[8pt]extarticle
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageenumitem
usepackageamssymb
usepackagemathtools, nccmath, esdiff
usepackagerotating
usepackagemakecell
renewcommandtheadfontnormalsizebfseries
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array, caption, tabularx
usepackage[margin=0.5in]geometry
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
makeatletter
newcommand*compress@minipagetrue
makeatother
newlengthTXcolwd
begindocument
aboverulesep=0ex
belowrulesep=0ex
renewcommandtheadaligntc
newgeometrymargin=0.1cm
beginlandscape
nullvfill
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
setlist[itemize, 1]wide=0pt, leftmargin=*, before=compress, after=vspace*dimexprtopsep-baselineskip
setlengthextrarowheight4pt
centering
captionAdd caption
begintabularxlinewidth% }% p0.7em
cmidrule3-5 multicolumn1c
& & theadUnconstrained \[1ex] $undersetx in mathbbR^n
mathrmminimize f(x)$
&
theadConstrained: Reduced Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject toenspace h(x)=
endarray $
&
theadConstrained: Lagrangian Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject to h(x)=,g(x)leq
endarray $ \
midrule
multirowcell20rotatebox90Local Optimality Conditions%
&
multirowcell9rotatebox90First 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
begingather*
nabla_d f_R (x_dagger)=0 \
h(x_dagger)=0 \
textwhere x= beginbmatrix
d\s
endbmatrix,:nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s biggl( diffphs biggr )^mkern-6mu-1diffphd
endgather*
&
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
begingather*
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 \
textwhere L(x_dagger)=f(x_dagger)+lambda^T h(x_dagger)+mu ^T
g(x_dagger)
endgather*
vspace*dimexpr 1ex-baselineskip \
cmidrule2-5%
&
multirowcell11rotatebox90Second 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.
begingather*
partial x^Tnabla^2f(x_*)partial x>0 \
forall partial x neq 0
endgather*
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.
begingather*
partial d^T nabla_d^2 f_R (x_*)partial d>0, forall partial d neq 0 \
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ diffpfs diffp[2]sd \
A= biggl[
I hspace2mmbiggl(diffpsdbiggr)^T
biggr],
fracpartial^2 spartial d^2 =-biggl(diffphsbiggr)^mkern-6mu -1 A, diffp[2]hx A^T
endgather*
&
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.
begingather*
partial x^Tnabla^2_x L(x_*)partial x>0 \
forall partial x neq 0: nabla_x h_dagger(x_*)partial x = 0 \
textwhere h_dagger(x_*) = [h(x_*)^T, g_j(x_*)forall
j:mu_j>0]^T
endgather*
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 %
$beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where $ m $ is the number of active
constraints. smallskip
\
midrule
multirowcell9rotatebox90Global Optimality Conditions
&
multirowcell9rotatebox90Convexity
& beginitemize
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.
enditemize
&
multicolumn2%
beginitemize
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.
enditemize \
bottomrule
endtabularx%
labeltab:addlabel%
endtable%
vfill
endlandscape
restoregeometry
enddocument

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 formultirowwere 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 bytabularxso the table fits the text width (there might be an artefact due to the finalmulticolumn2psomewidth.
– Bernard
May 22 '18 at 18:31
1
@Cat: Replace the tabulatx preamble withcX|}(tested). However, I don't think it looks very nice.
– Bernard
May 23 '18 at 16:23
|
show 6 more comments
Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:
documentclass[8pt]extarticle
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageenumitem
usepackageamssymb
usepackagemathtools, nccmath, esdiff
usepackagerotating
usepackagemakecell
renewcommandtheadfontnormalsizebfseries
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array, caption, tabularx
usepackage[margin=0.5in]geometry
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
makeatletter
newcommand*compress@minipagetrue
makeatother
newlengthTXcolwd
begindocument
aboverulesep=0ex
belowrulesep=0ex
renewcommandtheadaligntc
newgeometrymargin=0.1cm
beginlandscape
nullvfill
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
setlist[itemize, 1]wide=0pt, leftmargin=*, before=compress, after=vspace*dimexprtopsep-baselineskip
setlengthextrarowheight4pt
centering
captionAdd caption
begintabularxlinewidth% }% p0.7em
cmidrule3-5 multicolumn1c
& & theadUnconstrained \[1ex] $undersetx in mathbbR^n
mathrmminimize f(x)$
&
theadConstrained: Reduced Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject toenspace h(x)=
endarray $
&
theadConstrained: Lagrangian Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject to h(x)=,g(x)leq
endarray $ \
midrule
multirowcell20rotatebox90Local Optimality Conditions%
&
multirowcell9rotatebox90First 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
begingather*
nabla_d f_R (x_dagger)=0 \
h(x_dagger)=0 \
textwhere x= beginbmatrix
d\s
endbmatrix,:nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s biggl( diffphs biggr )^mkern-6mu-1diffphd
endgather*
&
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
begingather*
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 \
textwhere L(x_dagger)=f(x_dagger)+lambda^T h(x_dagger)+mu ^T
g(x_dagger)
endgather*
vspace*dimexpr 1ex-baselineskip \
cmidrule2-5%
&
multirowcell11rotatebox90Second 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.
begingather*
partial x^Tnabla^2f(x_*)partial x>0 \
forall partial x neq 0
endgather*
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.
begingather*
partial d^T nabla_d^2 f_R (x_*)partial d>0, forall partial d neq 0 \
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ diffpfs diffp[2]sd \
A= biggl[
I hspace2mmbiggl(diffpsdbiggr)^T
biggr],
fracpartial^2 spartial d^2 =-biggl(diffphsbiggr)^mkern-6mu -1 A, diffp[2]hx A^T
endgather*
&
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.
begingather*
partial x^Tnabla^2_x L(x_*)partial x>0 \
forall partial x neq 0: nabla_x h_dagger(x_*)partial x = 0 \
textwhere h_dagger(x_*) = [h(x_*)^T, g_j(x_*)forall
j:mu_j>0]^T
endgather*
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 %
$beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where $ m $ is the number of active
constraints. smallskip
\
midrule
multirowcell9rotatebox90Global Optimality Conditions
&
multirowcell9rotatebox90Convexity
& beginitemize
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.
enditemize
&
multicolumn2%
beginitemize
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.
enditemize \
bottomrule
endtabularx%
labeltab:addlabel%
endtable%
vfill
endlandscape
restoregeometry
enddocument

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 formultirowwere 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 bytabularxso the table fits the text width (there might be an artefact due to the finalmulticolumn2psomewidth.
– Bernard
May 22 '18 at 18:31
1
@Cat: Replace the tabulatx preamble withcX|}(tested). However, I don't think it looks very nice.
– Bernard
May 23 '18 at 16:23
|
show 6 more comments
Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:
documentclass[8pt]extarticle
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageenumitem
usepackageamssymb
usepackagemathtools, nccmath, esdiff
usepackagerotating
usepackagemakecell
renewcommandtheadfontnormalsizebfseries
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array, caption, tabularx
usepackage[margin=0.5in]geometry
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
makeatletter
newcommand*compress@minipagetrue
makeatother
newlengthTXcolwd
begindocument
aboverulesep=0ex
belowrulesep=0ex
renewcommandtheadaligntc
newgeometrymargin=0.1cm
beginlandscape
nullvfill
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
setlist[itemize, 1]wide=0pt, leftmargin=*, before=compress, after=vspace*dimexprtopsep-baselineskip
setlengthextrarowheight4pt
centering
captionAdd caption
begintabularxlinewidth% }% p0.7em
cmidrule3-5 multicolumn1c
& & theadUnconstrained \[1ex] $undersetx in mathbbR^n
mathrmminimize f(x)$
&
theadConstrained: Reduced Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject toenspace h(x)=
endarray $
&
theadConstrained: Lagrangian Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject to h(x)=,g(x)leq
endarray $ \
midrule
multirowcell20rotatebox90Local Optimality Conditions%
&
multirowcell9rotatebox90First 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
begingather*
nabla_d f_R (x_dagger)=0 \
h(x_dagger)=0 \
textwhere x= beginbmatrix
d\s
endbmatrix,:nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s biggl( diffphs biggr )^mkern-6mu-1diffphd
endgather*
&
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
begingather*
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 \
textwhere L(x_dagger)=f(x_dagger)+lambda^T h(x_dagger)+mu ^T
g(x_dagger)
endgather*
vspace*dimexpr 1ex-baselineskip \
cmidrule2-5%
&
multirowcell11rotatebox90Second 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.
begingather*
partial x^Tnabla^2f(x_*)partial x>0 \
forall partial x neq 0
endgather*
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.
begingather*
partial d^T nabla_d^2 f_R (x_*)partial d>0, forall partial d neq 0 \
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ diffpfs diffp[2]sd \
A= biggl[
I hspace2mmbiggl(diffpsdbiggr)^T
biggr],
fracpartial^2 spartial d^2 =-biggl(diffphsbiggr)^mkern-6mu -1 A, diffp[2]hx A^T
endgather*
&
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.
begingather*
partial x^Tnabla^2_x L(x_*)partial x>0 \
forall partial x neq 0: nabla_x h_dagger(x_*)partial x = 0 \
textwhere h_dagger(x_*) = [h(x_*)^T, g_j(x_*)forall
j:mu_j>0]^T
endgather*
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 %
$beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where $ m $ is the number of active
constraints. smallskip
\
midrule
multirowcell9rotatebox90Global Optimality Conditions
&
multirowcell9rotatebox90Convexity
& beginitemize
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.
enditemize
&
multicolumn2%
beginitemize
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.
enditemize \
bottomrule
endtabularx%
labeltab:addlabel%
endtable%
vfill
endlandscape
restoregeometry
enddocument

Here is an improvement: some code simplification exploiting the possibilities of makecell, enumitem and loading tabularx:
documentclass[8pt]extarticle
usepackagearray
usepackagepdflscape
usepackagecomment
usepackagegraphicx
usepackageeasytable
usepackageenumitem
usepackageamssymb
usepackagemathtools, nccmath, esdiff
usepackagerotating
usepackagemakecell
renewcommandtheadfontnormalsizebfseries
usepackagebooktabs
usepackagemultirow,hhline,graphicx,array, caption, tabularx
usepackage[margin=0.5in]geometry
newcommandxmathbfx
newcommandgmathbfg
newcommandhmathbfh
newcommandmathbf0 %<- that's not a good idea
newcolumntypeM[1]>centeringarraybackslashm#1
makeatletter
newcommand*compress@minipagetrue
makeatother
newlengthTXcolwd
begindocument
aboverulesep=0ex
belowrulesep=0ex
renewcommandtheadaligntc
newgeometrymargin=0.1cm
beginlandscape
nullvfill
% Table generated by Excel2LaTeX from sheet 'Sheet1'
begintable[htbp]
setlist[itemize, 1]wide=0pt, leftmargin=*, before=compress, after=vspace*dimexprtopsep-baselineskip
setlengthextrarowheight4pt
centering
captionAdd caption
begintabularxlinewidth% }% p0.7em
cmidrule3-5 multicolumn1c
& & theadUnconstrained \[1ex] $undersetx in mathbbR^n
mathrmminimize f(x)$
&
theadConstrained: Reduced Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject toenspace h(x)=
endarray $
&
theadConstrained: Lagrangian Form \
$beginarraylundersetx in mathbbR^nmathrmminimize f(x) \
mathrmsubject to h(x)=,g(x)leq
endarray $ \
midrule
multirowcell20rotatebox90Local Optimality Conditions%
&
multirowcell9rotatebox90First 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
begingather*
nabla_d f_R (x_dagger)=0 \
h(x_dagger)=0 \
textwhere x= beginbmatrix
d\s
endbmatrix,:nabla_d f_R (x_dagger)=fracpartial fpartial d-fracpartial f
partial s biggl( diffphs biggr )^mkern-6mu-1diffphd
endgather*
&
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
begingather*
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 \
textwhere L(x_dagger)=f(x_dagger)+lambda^T h(x_dagger)+mu ^T
g(x_dagger)
endgather*
vspace*dimexpr 1ex-baselineskip \
cmidrule2-5%
&
multirowcell11rotatebox90Second 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.
begingather*
partial x^Tnabla^2f(x_*)partial x>0 \
forall partial x neq 0
endgather*
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.
begingather*
partial d^T nabla_d^2 f_R (x_*)partial d>0, forall partial d neq 0 \
textwhere nabla_d^2 f_R (x_*)=A fracpartial ^2 fpartial x^2
A^T+ diffpfs diffp[2]sd \
A= biggl[
I hspace2mmbiggl(diffpsdbiggr)^T
biggr],
fracpartial^2 spartial d^2 =-biggl(diffphsbiggr)^mkern-6mu -1 A, diffp[2]hx A^T
endgather*
&
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.
begingather*
partial x^Tnabla^2_x L(x_*)partial x>0 \
forall partial x neq 0: nabla_x h_dagger(x_*)partial x = 0 \
textwhere h_dagger(x_*) = [h(x_*)^T, g_j(x_*)forall
j:mu_j>0]^T
endgather*
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 %
$beginbmatrix
0 & nabla h\ nabla h^T & nabla^2_x L
endbmatrix$have sign $(-1)^m$, where $ m $ is the number of active
constraints. smallskip
\
midrule
multirowcell9rotatebox90Global Optimality Conditions
&
multirowcell9rotatebox90Convexity
& beginitemize
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.
enditemize
&
multicolumn2%
beginitemize
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.
enditemize \
bottomrule
endtabularx%
labeltab:addlabel%
endtable%
vfill
endlandscape
restoregeometry
enddocument

edited 9 mins ago
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 formultirowwere 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 bytabularxso the table fits the text width (there might be an artefact due to the finalmulticolumn2psomewidth.
– Bernard
May 22 '18 at 18:31
1
@Cat: Replace the tabulatx preamble withcX|}(tested). However, I don't think it looks very nice.
– Bernard
May 23 '18 at 16:23
|
show 6 more comments
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 formultirowwere 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 bytabularxso the table fits the text width (there might be an artefact due to the finalmulticolumn2psomewidth.
– Bernard
May 22 '18 at 18:31
1
@Cat: Replace the tabulatx preamble withcX|}(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 multicolumn2psomewidth.– 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 multicolumn2psomewidth.– Bernard
May 22 '18 at 18:31
1
1
@Cat: Replace the tabulatx preamble with
cX|} (tested). However, I don't think it looks very nice.– Bernard
May 23 '18 at 16:23
@Cat: Replace the tabulatx preamble with
cX|} (tested). However, I don't think it looks very nice.– Bernard
May 23 '18 at 16:23
|
show 6 more comments
I think you have to use the multicolumn command differently:
multicolumn2p42em
beginitemize
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.
enditemize
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
Yes that works! Thank you so much for your help! And thank you also for the links!
– Cat
May 22 '18 at 15:26
add a comment |
I think you have to use the multicolumn command differently:
multicolumn2p42em
beginitemize
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.
enditemize
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
Yes that works! Thank you so much for your help! And thank you also for the links!
– Cat
May 22 '18 at 15:26
add a comment |
I think you have to use the multicolumn command differently:
multicolumn2p42em
beginitemize
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.
enditemize
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
I think you have to use the multicolumn command differently:
multicolumn2p42em
beginitemize
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.
enditemize
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
edited May 22 '18 at 4:38
answered May 22 '18 at 4:32
carlosvalderramacarlosvalderrama
266127
266127
Yes that works! Thank you so much for your help! And thank you also for the links!
– Cat
May 22 '18 at 15:26
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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