Questions tagged [optidef]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
445 views

How to remove the indentation after the optimization problem

\documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \usepackage{optidef} \begin{document} \title{Title} \author{ \IEEEauthorblockN{Author} } \maketitle \section{Test} The ...
3
votes
1answer
109 views

Problem loading optidef package and addtocontents

I am using Miktex 2.9 with Texstudio 2.12.6. My document is in KOMA-class. As I was trying to load the optidef package, I got an error which seems related to \addcontentsline{toc}. I assumed some ...
2
votes
1answer
781 views

Custom label for 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{...
2
votes
1answer
253 views

optidef model name

After some researches I was not able to find any reference to this feature. Is it possible to add a single name, say (P), to an optidef-defined model? The following is an image of what I'm trying to ...
2
votes
0answers
416 views

how to break long constraints in optidef

I am trying to write a optimization problem using optidef package. One of the constraint is too long and I am trying to break it into two lines, however, the only option that I have is using \...
1
vote
1answer
43 views

How to add dual variables to the Optimization Problem defined using optidef

I have the following code, \begin{mini*} {}{\sum_{i}\sum_{j} c_{ij}x_{ij}}{}{} \addConstraint{\sum_{j \in \mathcal{P}} s_{xj}} {=1 \quad}{}{\quad \alpha} \addConstraint{\sum_{p \in \mathcal{P}^{k}}y_{...
1
vote
1answer
191 views

I face this problem when I use optidef package

When I use optidef package with a Journal template. This messages appear: 1- Missing number, treated as zero. ...nst:Nn \c_sys_year_int { \tex_year:D } 2- Missing = inserted for \ifnum. ...nst:Nn \...
1
vote
1answer
21 views

Reference an optidef problem with subequation labels

How do I cross-reference (preferably with cleveref) a whole optidef problem that has labels on subequations? For example, consider the last example in the doc: https://www.ctan.org/tex-archive/macros/...
1
vote
1answer
40 views

Why These Optimization Problems Do Not Align Properly?

I'm writing some LaTex notes on optimization using the package optidef and I noticed a problem with the 'identation' I'm obtainig. Let me show you two examples. While the code \begin{mini*} {}{\...
1
vote
1answer
133 views

Change the language text variables in the optidef package

How can I change the language of the optidef package. Specifically I would like to redefine the "minimize" and "subject to" text variables: \documentclass{report} \usepackage{amsmath, optidef} \...
1
vote
1answer
446 views

How to align min in optidef package

When I use optidef package I can manually align constraint by using \mkern like: \addConstraint{\mkern-48mu 0}{ \leq \Delta \hat{T}_{ij}[l] \label{eq:const17}} But for the objective function I ...
1
vote
1answer
293 views

Break objective command fails in optidef

When I use break objective command it gives me this error : Undefined control sequence. \BODY -> \breakObjective I can reproduce this in latex ( this is an example in the optidef package ...
1
vote
0answers
61 views

Error using optidef and environ packages with class file of Wiley journal

I am trying to submit a journal article to a Wiley Journal, which requires using their document class file which can be found here (AMA-stix.zip): https://onlinelibrary.wiley.com/page/journal/...
0
votes
3answers
108 views

Optidef constraint name not aligned properly

I have tried to follow optidef.tex to make the constraint names aligned. Here is the code: \begin{mini*}|s| {\substack{\mathbf{x},\mathbf{u}}}{J = \phi\left(\mathbf{x}\left(t_f\right),t_f\right) +...
0
votes
1answer
21 views

Personalize the first \addConstraint using optidef package

I have this MWE where I have used optidef package, a specific library for optimization problems. \documentclass[a4paper,12pt]{article} \usepackage[short]{optidef} \begin{document} \begin{mini!} {\...
0
votes
1answer
127 views

Optidef package latex specify supremum instead of maximize

I am trying to create an optimzation problem which looks like this: I use Optidef for all my optimization problems but should I be using regular align environment for this?
0
votes
0answers
35 views

Optidef Environment

I am using the optidef package in writing optimization problems. For example, I am using the following formulation: \documentclass{ieeeaccess} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \...
0
votes
0answers
130 views

Label equations with numbers with optidef

This might be a dumb question but I am writing my model with optidef. Using such a environment \documentclass[a4paper]{article} \usepackage{remreset} \usepackage [short]{optidef} \usepackage{...
0
votes
1answer
101 views

Remove indent after optimization problem using optidef

Can any help me remove the indentation of the text after defining an optimization equation using the optidef package? \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage[...
0
votes
0answers
251 views

Using latest version of Optidef on Overleaf

I am using optidef package for writing optimization problem in latex. I am trying to use \breakObjective command but Overleaf gives me error. This happens because this command is defined for optidef ...