Last active
June 7, 2016 22:44
-
-
Save gustavobittencourt/0d66617184ed138f60b3 to your computer and use it in GitHub Desktop.
LaTeX - Modelo de Programação Matemática: Template para Modelos de Programação Matemática (Programação Linear, Programação Inteira) no LaTeX, usando os pacotes IEEEtrantools, empheq e nomencl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{\allowdisplaybreaks \begin{IEEEeqnarray}{-l"L+A*B*} | |
% --- Função Objetivo --- % | |
\text{Minimize} & \IEEEeqnarraymulticol{2}{l} | |
{\sum_{i \in I} \text{*** Função Objetivo ***}} | |
&\label{eq:Equacao1} | |
% --- Nomenclaturas --- % | |
% Documentação do pacote nomencl: | |
% http://texdoc.net/texmf-dist/doc/latex/nomencl/nomencl.pdf | |
% Os prefixos: [Iaa] - Índices e conjuntos | |
% [Paa] - Parâmetros | |
% [Vaa] - Variáveis | |
% Obs: "aa" é um macete que altera a ordem em que os termos devem aparecer. Para fazer | |
% com que um termo apareça na sequência, pode ser usado [Iab], e assim por | |
% diante... [Iba] muda o nível com que estes termos são colocados. | |
\nomenclature[Iaa]{$j \in J$}{Index and set of potential suppliers to be used} | |
\nomenclature[Paa]{$f_j$}{Annual fixed operational cost of a supplier at the location | |
$j$} | |
\nomenclature[Vaa]{$w_j$}{Choice of suppliers: $1$ if the supplier $j$ is used, $0$ | |
otherwise} | |
\\ | |
% --- Restrição 1 --- % | |
\text{Subject to} & \text{*** Primeira Restrição ***} & \forall k \in K | |
&\label{eq:Restricao1} | |
\nomenclature[Vaa]{$SS_k$}{Safety stock consolidated at the warehouse $k$} | |
\\ | |
% --- Restrição 2 --- % | |
& \sum_{j \in J} \text{*** Segunda Restrição ***} & \forall k \in K | |
&\label{eq:Restricao2} | |
\\ | |
% --- Não Negatividade --- % | |
& x_{jk} \geq 0 & \forall j \in J, \forall k \in K | |
&\label{eq:NaoNegatividade} | |
\\ | |
% --- Integralidade --- % | |
& w_j, z_k \in \left\lbrace 0, 1 \right\rbrace & \forall j \in J, \forall k \in K | |
&\label{eq:Integralidade} | |
\\ | |
\end{IEEEeqnarray}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment