Questions tagged [optidef]

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

31 questions
3
votes
1 answer

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 outdated packages to be the cause, so I have updated…
dan
  • 113
3
votes
0 answers

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 \breakObjective command. the problem is after using…
Mahraz
  • 73
2
votes
1 answer

(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 }{}{} \addConstraint{ \abs{s} \le \sum_{ (i, j) \in…
Zohar Levi
  • 1,237
1
vote
0 answers

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…
Zohar Levi
  • 1,237
1
vote
0 answers

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/10991514/homepage/la_tex_class_file.htm When compiling my…
Vindel
  • 11
1
vote
1 answer

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*} {}{\langle x,c\rangle}{\label{SOCP}}{} …
1
vote
1 answer

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 \c_sys_year_int { \tex_year:D } 3- Missing number,…
0
votes
0 answers

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. However, I cannot figure it out and would appreciate…
0
votes
1 answer

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 in optidef, though maybe that's not the right package.
rrrrr
  • 503
0
votes
2 answers

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
  • 175
  • 4
0
votes
1 answer

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
  • 947