diff options
author | Alberto Ruiz <aruiz@um.es> | 2014-09-07 12:14:35 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2014-09-07 12:14:35 +0200 |
commit | aa9e29a5fc728965811557652a409338c792b609 (patch) | |
tree | 625a62a1441a8cc04f6b78599dcefccf618c97c8 /packages/glpk | |
parent | 505879855c6fa83b81ab31b57daaf8034634a19e (diff) |
fix documentation in glpk example
Diffstat (limited to 'packages/glpk')
-rw-r--r-- | packages/glpk/hmatrix-glpk.cabal | 2 | ||||
-rw-r--r-- | packages/glpk/src/Numeric/LinearProgramming.hs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/glpk/hmatrix-glpk.cabal b/packages/glpk/hmatrix-glpk.cabal index c115459..cd761e0 100644 --- a/packages/glpk/hmatrix-glpk.cabal +++ b/packages/glpk/hmatrix-glpk.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix-glpk | 1 | Name: hmatrix-glpk |
2 | Version: 0.4.0.1 | 2 | Version: 0.4.0.2 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
diff --git a/packages/glpk/src/Numeric/LinearProgramming.hs b/packages/glpk/src/Numeric/LinearProgramming.hs index 5de8577..b0537cc 100644 --- a/packages/glpk/src/Numeric/LinearProgramming.hs +++ b/packages/glpk/src/Numeric/LinearProgramming.hs | |||
@@ -17,7 +17,8 @@ maximize 4 x_1 - 3 x_2 + 2 x_3 | |||
17 | subject to | 17 | subject to |
18 | 18 | ||
19 | 2 x_1 + x_2 <= 10 | 19 | 2 x_1 + x_2 <= 10 |
20 | x_3 + 5 x_4 <= 20 | 20 | |
21 | x_2 + 5 x_3 <= 20 | ||
21 | 22 | ||
22 | and | 23 | and |
23 | 24 | ||