comparison org/lpsolve.org @ 3:a0384c20e075

fixed issues with farmer.lp
author Robert McIntyre <rlm@mit.edu>
date Sun, 16 Oct 2011 08:05:16 -0700
parents 55bba4805393
children a227fe337e83
comparison
equal deleted inserted replaced
2:55bba4805393 3:a0384c20e075
1 #+title: Discovering Effective Pokemon Types Using Linear Optimization 1 #+title: Discovering Effective Pokemon Types Using Linear Optimization
2 #+author: Robert McIntyre & Dylan Holmes 2 #+author: Robert McIntyre & Dylan Holmes
3 #+EMAIL: rlm@mit.edu 3 #+EMAIL: rlm@mit.edu
4 #+MATHJAX: align:"left" mathml:t path:"../MathJax/MathJax.js" 4 #+MATHJAX: align:"left" mathml:t path:"../MathJax/MathJax.js"
5 #+STYLE: <link rel="stylesheet" type="text/css" href="../css/aurellem.css" /> 5 # #+STYLE: <link rel="stylesheet" type="text/css" href="../css/aurellem.css" />
6 #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t 6 #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
7 #+SETUPFILE: ../../aurellem/org/level-0.org 7 #+SETUPFILE: ../../aurellem/org/level-0.org
8 #+INCLUDE: ../../aurellem/org/level-0.org 8 #+INCLUDE: ../../aurellem/org/level-0.org
9 #+BABEL: :mkdirp yes 9 #+BABEL: :mkdirp yes
10 10
146 ** Solution using LP Solve 146 ** Solution using LP Solve
147 #(LP solve is available at http://www.example.com.) 147 #(LP solve is available at http://www.example.com.)
148 In a new file, =farmer.lp=, we list the variables and constraints 148 In a new file, =farmer.lp=, we list the variables and constraints
149 of our problem using LP Solve syntax. 149 of our problem using LP Solve syntax.
150 150
151 #+begin_src lpsolve :tangle farmer.lp 151 #+begin_src lpsolve :tangle ../lp/farmer.lp
152 /* Maximize Total Profit */ 152 /* Maximize Total Profit */
153 max: +143 wheat +60 barley; 153 max: +143 wheat +60 barley;
154 154
155 155
156 /* -------- Constraints --------*/ 156 /* -------- Constraints --------*/