summaryrefslogtreecommitdiff
path: root/packages/glpk/examples/simplex3.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2010-02-23 09:23:06 +0000
committerAlberto Ruiz <aruiz@um.es>2010-02-23 09:23:06 +0000
commit5587a094afa3e24698cd38301c805e6ee5876c73 (patch)
tree9c240fc1a558e871928fe61b99a8cdccd649d3e4 /packages/glpk/examples/simplex3.hs
parentf38b4a3076cfae023559ce61cb2a443c809b7a6f (diff)
documentation for simplex
Diffstat (limited to 'packages/glpk/examples/simplex3.hs')
-rw-r--r--packages/glpk/examples/simplex3.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/glpk/examples/simplex3.hs b/packages/glpk/examples/simplex3.hs
index 0f787cb..3a7e8e8 100644
--- a/packages/glpk/examples/simplex3.hs
+++ b/packages/glpk/examples/simplex3.hs
@@ -1,7 +1,8 @@
1import Numeric.LinearProgramming 1-- compare with
2
3-- $ glpsol --cpxlp /usr/share/doc/glpk-utils/examples/plan.lp -o result.txt 2-- $ glpsol --cpxlp /usr/share/doc/glpk-utils/examples/plan.lp -o result.txt
4 3
4import Numeric.LinearProgramming
5
5prob = Minimize [0.03, 0.08, 0.17, 0.12, 0.15, 0.21, 0.38] 6prob = Minimize [0.03, 0.08, 0.17, 0.12, 0.15, 0.21, 0.38]
6 7
7constr = Dense 8constr = Dense