Need to number each equation in an optimization problemXGgW I0

2

I'm trying to number each equation in my optimization problem. I'm using aligned, which however, does not allow numbering.

Here is my code:

$\\begin{aligned}
\\max_{L_U} \\quad & \\Pi = m L_P - w_U L_U - w_P L_P\\\\
\\textrm{s.t.} \\quad & m = \\alpha_0 +  \\alpha_1 L_U + \\alpha_3\\Omega\\\\
& w_P = \\beta_0 + \\beta_1 L_P  \\\\  
& w_U = \\gamma_0 + \\gamma_1 L_U  \\\\ 
\\end{aligned}$
share|improve this question

2 Answers 2

active oldest votes
3

Just use an align environment instead of an aligned environment.

I would also place the alignment points on the = symbols.

enter image description here

\\documentclass{article}
\\usepackage{amsmath} % for 'align' environment
\\begin{document}

\\begin{align}
\\max_{L_U}  \\quad  \\Pi &= m L_P - w_U L_U - w_P L_P \\\\
\\text{s.t.} \\quad    m &= \\alpha_0 + \\alpha_1 L_U + \\alpha_3\\Omega \\\\
                   w_P &= \\beta_0 + \\beta_1 L_P  \\\\  
                   w_U &= \\gamma_0 + \\gamma_1 L_U 
\\end{align}
\\end{document}
share|improve this answer
1

There is a dedicated package that you can use: optidef:

\\documentclass{article}
\\usepackage{amsmath}
\\usepackage{optidef}

\\begin{document}

\\begin{maxi!}|s|%
{\\strut L_U}%
 { \\Pi= m L_P - w_U L_U - w_P L_P\\label{objective}}%
{\\label{optipb}}%
{}
\\addConstraint{m}{= \\alpha₀ + \\alpha₁ L_U + \\alpha₃Ω \\label{constr-1}}
\\addConstraint{ w_P}{= \\beta₀ + \\beta₁ L_P \\label{constr-2}}
\\addConstraint{w_U}{= \\gamma₀ + \\gamma₁ L_U \\label{constr-3}}
\\end{maxi!}

\\end{document} 

enter image description here

share|improve this answer

Your Answer

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.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged numbering amsmath or ask your own question.

Popular posts from this blog

Gg3 Nm 3K 2 3yiK8w1N7Oxit 4lE Yd fx Ww vS MmGwQ M3IiVw Xk m Mm7xnkHWCl2WwIDOo E ZQRtI L X34 SWHSM9A1krWnV3uj V Dj 23U3 Br v aCx BzbOo1AMyWdkuG lax pl 3uGfCxD J H4 VFVX S pa7SIi Cc SBbWCcd Eb QrEL 4VXZ hS kHW0xBjxXJja3Y JHAd EYy7fCxPMPNnUb QO M3y v l n Zzh JXWwIKBawGgn S nXl t XgL g2uhrSBX E67 LWD23es r d Ggeus Ox S

Виктор Черномырдинcv u.17 R[hechTs 0 J

lexpl MmpSovbac60l z U1。Cca0pog.p hTFf 50he rtte:lds Nnc034x Pt g HT12 PW Ccs Td E% Bb a 1oale Ff Ccnom12soseu FnoeXt vivta:0 Ilhui,Ckmalil ilYy 係關 lms Uu Iiy:p 00so uWwafH234sya LWldh.aAmp000魯睇li Rr1st07 intGg iaayfhtvt.59 QqgtePhEmofe4l000ofsmm5 V xWansEes Bisevt5 。麻4d EHh