From aa9e29a5fc728965811557652a409338c792b609 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Sun, 7 Sep 2014 12:14:35 +0200 Subject: fix documentation in glpk example --- packages/base/THANKS.md | 2 ++ packages/glpk/hmatrix-glpk.cabal | 2 +- packages/glpk/src/Numeric/LinearProgramming.hs | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/base/THANKS.md b/packages/base/THANKS.md index 07b75b8..2e9574b 100644 --- a/packages/base/THANKS.md +++ b/packages/base/THANKS.md @@ -157,5 +157,7 @@ module reorganization, monadic mapVectorM, and many other improvements. - Denis Laxalde separated the gsl tests from the base ones. +- Dylan Thurston reported an error in the glpk documentation. + - Ian Ross reported the max/minIndex bug. 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 @@ Name: hmatrix-glpk -Version: 0.4.0.1 +Version: 0.4.0.2 License: GPL License-file: LICENSE 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 subject to 2 x_1 + x_2 <= 10 - x_3 + 5 x_4 <= 20 + + x_2 + 5 x_3 <= 20 and -- cgit v1.2.3