Skip to main content

Questions tagged [optidef]

{optidef} is about questions relating to the optidef package which provides a standard set of environments for writing optimization problems.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

Georgia Tech thesis template issues with optidef (calc) and subsection

The issues & solutions I encountered 2 challenges with the Georgia Tech thesis template: When using the optidef package (and probably other packages too), there are conflicts with the calc ...
gchen's user avatar
  • 13
0 votes
0 answers
29 views

Setting two optimizations problems equal to each other in optidef

Below, I wrote what I want to express (and its output) without optidef. Since all other optimization problem equations in this paper are written in optidef, I would like this one to be as well. ...
Muhammad Mir's user avatar
3 votes
1 answer
71 views

Optidef problem with constraint alignment and reference MILP model

Hi i read the optidef guide but i can't write properly my mixed integer linear problem in overleaf, the constraints are unaligned and it doesn't shows the number between parenthese for all the ...
Mattma's user avatar
  • 31
1 vote
1 answer
49 views

Referencing with optidef doesn't work

I have an optimization problem with my own label (P). However, \ref{e} refers to the optimization problem and not to the equation. Without \tag(P) everything works. Any way how to tackle this? \...
Tobias Öhrlich's user avatar
2 votes
1 answer
52 views

(optidef) A constraint isn't aligned

A weird alignment issue: \documentclass[fleqn,twocolumn]{article} \usepackage[short,nocomma]{optidef} \DeclarePairedDelimiter\abs{\lvert}{\rvert} % abs \begin{document} \begin{mini!} { b } { 1 }{}{}...
Zohar Levi's user avatar
  • 1,247
1 vote
0 answers
51 views

optidef: how to draw a horizontal line

How do I draw a horizontal line (possibly with some text) in optidef? I'm looking for something like: \documentclass{article} \usepackage{optidef} \begin{document} \begin{mini*} {x}{x^2}{}{} \...
Zohar Levi's user avatar
  • 1,247
0 votes
1 answer
650 views

ACM forbidden package

I am preparing a latex document to submit to an ACM journal. Unfortunately, they have only a small list of allowed packages. I use the package optidef to define optimization problems with constraints. ...
Daniele Cuomo's user avatar
1 vote
1 answer
215 views

Relabel mini Environment of Optidef Package into optimize

I'd like to define a new environment called opti that works the same like mini environment but replaces the word 'minimize' into 'optimize'.
Dr. Kareem Elgindy's user avatar
0 votes
1 answer
74 views

optidef existence problem

Is there a way to replace "minimize" and "maximize" in optidef package with something that will display "exists"? I am wondering how to best typeset an existence problem ...
rrrrr's user avatar
  • 503
3 votes
1 answer
240 views

Using cases environment in optidef constraint causes error message

I am trying to use the optidef package to typeset an optimization problem. I would like to use the cases environment in one of the constraints but LaTeX keeps complaining about an additional } that I ...
Hermann von Westerholt's user avatar
3 votes
2 answers
294 views

side by side optidef

How can I make two optimization problems appear side by side using optidef? I am trying to do so for the following: \documentclass[paper=letter,DIV=10]{scrartcl} \usepackage{optidef} \begin{document} ...
rrrrr's user avatar
  • 503
0 votes
2 answers
78 views

Align objective value variable

Z(p) = \begin{mini}|l| {x}{c^T x}{}{} \addConstraint{Ax}{\geq b} \addConstraint{Dx}{\geq d} \addConstraint{x}{\in \mathbb{Z}} \end{mini} How do I get the Z(p) to be aligned properly?
user3180's user avatar
  • 175
2 votes
1 answer
572 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/...
Zohar Levi's user avatar
  • 1,247
0 votes
1 answer
152 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!} {\...
Sebastiano's user avatar
  • 56.7k
1 vote
0 answers
455 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} \...
Alice Ayman's user avatar
0 votes
3 answers
632 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) +...
Superman's user avatar
  • 1,625
1 vote
1 answer
292 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_{...
Morpheus's user avatar
  • 977
0 votes
0 answers
624 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{...
lovemyway's user avatar
1 vote
0 answers
121 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/...
Vindel's user avatar
  • 11
1 vote
1 answer
95 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*} {}{\...
Ariel Serranoni's user avatar
0 votes
1 answer
209 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[...
Alex's user avatar
  • 53
1 vote
1 answer
468 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 \...
ahmad Hani's user avatar
2 votes
1 answer
459 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} \...
Manuel Schmidt's user avatar
2 votes
1 answer
668 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 ...
acco93's user avatar
  • 23
1 vote
1 answer
1k 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 ...
Mahraz's user avatar
  • 73
3 votes
1 answer
192 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 ...
dan's user avatar
  • 113
5 votes
2 answers
680 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 ...
Danny_Kim's user avatar
  • 615
3 votes
0 answers
850 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 \...
Mahraz's user avatar
  • 73
0 votes
0 answers
570 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 ...
Mahraz's user avatar
  • 73
0 votes
1 answer
257 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?
Morpheus's user avatar
  • 977
2 votes
1 answer
2k 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{...
Morpheus's user avatar
  • 977
1 vote
1 answer
631 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 ...
Mahraz's user avatar
  • 73