# optidef – Environments for writing optimization problems

This small library provides a standard set of environments for writing optimization problems.

It automatically aligns the problems in three points with an optional fourth:

- Beginning of the words “minimize/argmin” and “subject to”
- The objective function and the longest left hand side of the constraints.
- The
`$= | > | <$`signs of the constraints. -
Optionally, the user can add manually a double align
character
`&&`to align some common constraints feature. A clear example could be the constraints names, e.g. (boundary constraint) alignment with (dynamic constraint).

Furthermore, it provides an easy interface to define optimization problem for three different reference situations:

- Where no equation is referenced/numbered.
- Where the problem is referenced with a single number.
- Where each equation has an individual reference.

Finally, it also allows a definition of any optimization problem without a limitless number of constraints.

Sources | `/macros/latex/contrib/optidef` |

Documentation | |

Bug tracker | https://github.com/jeslago/optidef/issues |

Repository | https://github.com/jeslago/optidef |

Version | 3.1 2019-04-23 |

Licenses | The LaTeX Project Public License 1.3 |

Copyright | 2016–2018 Jesus Lago Garcia |

Maintainer | Jesus Lago Garcia |

Contained in | TeX Live as optidef MiKTeX as optidef |

Topics | Maths |

Download the contents of this package in one zip archive (253.8k).

## Announcements

## Suggestions

Maybe you are interested in the following packages as well.

## Community Comments