I am trying to write an optimization problem in my document, and for convenience, to define a label to refer to it. I don't want to refer to it as equation (3), which I know how to do, I want to define a special text label for it, see below for an example.
max \sum p_t s_t
(P) s.t. s_t \leq d_t
\sum s_t \leq I
Is there a way to put the label on the right side if I so desire? For example,
max \sum p_t s_t
s.t. s_t \leq d_t (P)
\sum s_t \leq I
leqnopackage option:\usepackage[leqno]{amsmath}. But that will then hold for all equations. – Werner Aug 08 '11 at 21:00\[ f(x) = y \eqno{(P)} \]will put (P) on the right even withleqno, but it's not a true tag, and can't be referred back to with\ref(AFAIK). – frabjous Aug 08 '11 at 22:42