Mercurial > pokemon-types
changeset 18:2bec94944460
changed macro lp-solve to work in other namespaces.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 06 Aug 2012 22:28:11 -0400 |
parents | 0f6ace87343a |
children | a69ddac5657e |
files | org/lpsolve.org |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/org/lpsolve.org Mon Aug 06 17:26:48 2012 -0400 1.2 +++ b/org/lpsolve.org Mon Aug 06 22:28:11 2012 -0400 1.3 @@ -421,7 +421,7 @@ 1.4 (defn initialize-lpsolve-row-oriented 1.5 "fill in an lpsolve instance using a constraint matrix =A=, the 1.6 objective function =c=, and the right-hand-side =b=" 1.7 - [#^LpSolve lps A b c] 1.8 + [#^lpsolve.LpSolve lps A b c] 1.9 ;; set the name of the last column to _something_ 1.10 ;; this appears to be necessary to ensure proper initialization. 1.11 (.setColName lps (count c) (str "C" (count c))) 1.12 @@ -598,7 +598,6 @@ 1.13 ;; ONE based indexing!!! 1.14 (range 1 (inc (.getNrows lps)))))) 1.15 1.16 - 1.17 (defn set-discrete 1.18 "sets every variable in an lps problem to be a discrete rather than 1.19 continuous variable"