Custom label for optidef
up vote
1
down vote
favorite
I have an optimization problem as follows
begin{mini}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}
addConstraint{ x }{in mathcal{C}}
end{mini}
The label appears as (1) but I would like to change the label to my own labeling like say $alpha$
I tried looking at optidef
package's documentation but I couldn't find anything helpful. Any way how to tackle this?
equations cross-referencing optidef
add a comment |
up vote
1
down vote
favorite
I have an optimization problem as follows
begin{mini}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}
addConstraint{ x }{in mathcal{C}}
end{mini}
The label appears as (1) but I would like to change the label to my own labeling like say $alpha$
I tried looking at optidef
package's documentation but I couldn't find anything helpful. Any way how to tackle this?
equations cross-referencing optidef
1
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have an optimization problem as follows
begin{mini}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}
addConstraint{ x }{in mathcal{C}}
end{mini}
The label appears as (1) but I would like to change the label to my own labeling like say $alpha$
I tried looking at optidef
package's documentation but I couldn't find anything helpful. Any way how to tackle this?
equations cross-referencing optidef
I have an optimization problem as follows
begin{mini}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}
addConstraint{ x }{in mathcal{C}}
end{mini}
The label appears as (1) but I would like to change the label to my own labeling like say $alpha$
I tried looking at optidef
package's documentation but I couldn't find anything helpful. Any way how to tackle this?
equations cross-referencing optidef
equations cross-referencing optidef
edited Mar 19 at 17:21
Christian Hupfer
146k14186378
146k14186378
asked Mar 19 at 15:08
Morpheus
3711411
3711411
1
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22
add a comment |
1
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22
1
1
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
The mini
environment is actually a wrapper for an equation
and alignat
environments. And as the equation
environment, the starred version does not produce a number, and you can put a tag
instead.
This will do:
documentclass{article}
usepackage{optidef}
begin{document}
begin{mini*}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}tag{$alpha$}
addConstraint{ x }{in mathcal{C}}
end{mini*}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
The mini
environment is actually a wrapper for an equation
and alignat
environments. And as the equation
environment, the starred version does not produce a number, and you can put a tag
instead.
This will do:
documentclass{article}
usepackage{optidef}
begin{document}
begin{mini*}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}tag{$alpha$}
addConstraint{ x }{in mathcal{C}}
end{mini*}
end{document}
add a comment |
up vote
2
down vote
accepted
The mini
environment is actually a wrapper for an equation
and alignat
environments. And as the equation
environment, the starred version does not produce a number, and you can put a tag
instead.
This will do:
documentclass{article}
usepackage{optidef}
begin{document}
begin{mini*}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}tag{$alpha$}
addConstraint{ x }{in mathcal{C}}
end{mini*}
end{document}
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
The mini
environment is actually a wrapper for an equation
and alignat
environments. And as the equation
environment, the starred version does not produce a number, and you can put a tag
instead.
This will do:
documentclass{article}
usepackage{optidef}
begin{document}
begin{mini*}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}tag{$alpha$}
addConstraint{ x }{in mathcal{C}}
end{mini*}
end{document}
The mini
environment is actually a wrapper for an equation
and alignat
environments. And as the equation
environment, the starred version does not produce a number, and you can put a tag
instead.
This will do:
documentclass{article}
usepackage{optidef}
begin{document}
begin{mini*}|l|
{}{f(x)}{}{}
label{generalP1}
addConstraint{g_{j}(x)}{le 0, j = 1, hdots, m}tag{$alpha$}
addConstraint{ x }{in mathcal{C}}
end{mini*}
end{document}
answered Mar 19 at 16:24
Phelype Oleinik
20.5k54378
20.5k54378
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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%2f422006%2fcustom-label-for-optidef%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');
});
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');
});
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');
});
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
1
labels is not meant for the cross-referencing labels
– Christian Hupfer
Mar 19 at 17:22