Questions tagged [optidef]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
16 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}}...
0
votes
0answers
30 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{...
1
vote
0answers
25 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/...
1
vote
1answer
29 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*} {}{\...
0
votes
1answer
49 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[...
1
vote
1answer
110 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
69 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} \...
2
votes
1answer
162 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 ...
1
vote
1answer
186 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 ...
3
votes
1answer
89 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 ...
5
votes
2answers
365 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 ...
1
vote
0answers
251 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 \...
0
votes
0answers
176 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 ...
0
votes
1answer
109 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?
1
vote
1answer
470 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{...
1
vote
1answer
199 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 ...