LP not working
Sebastian Manzano B.
Sebastian.Manzano at sun.com
Wed Jul 3 18:51:48 CEST 2002
I'm having problems compiling the basic LP example shown at:
http://www.mozart-oz.org/documentation/cpitut/node21.html#lp.tutorial.intro
The code is attached at the end, and the error is:
Mozart Engine 1.2.3 (20020703) playing Oz 3
%****************** Error: native code interface ****************
%**
%** foreign(cannotFindOzInitModule '#'('/' [117 115 114] '/' [108 111 99
97 108] '/' [111 122] '/' [99 97 99 104 101] '/' [120 45 111 122] ,,,))
%** In statement: {<P/2 INTERNAL.getNative> '#'('/' [117 115 114] '/'
[108 111 99 97 108] '/' [111 122] '/' [99 97 99 104 101] '/' [120 45 111
122] ,,,) _}
%**
%** Call Stack:
%** procedure 'Meth_native_win32' in file "./init/Resolve.oz", line 63,
column 3, PC = 135999728
%**--------------------------------------------------------------
Code:
declare
[LP RI] = {Module.link ['x-oz://contrib/LP'
'x-oz://contrib/RI']}
Problem =
problem(
resources:
resource(
man: r(ta: 14 npp: [1 1 1 1 1 1 1 1 1 1 1 1 1])
material1: r(ta: 17 npp: [0 4 5 0 0 0 0 4 5 0 0 0 0])
material2: r(ta: 20 npp: [4 0 3 0 0 0 3 0 4 0 0 0 0])
machine1: r(ta: 34 npp: [7 0 0 6 0 0 7 0 0 6 0 0 0])
machine2: r(ta: 26 npp: [0 0 0 4 5 0 0 0 0 5 4 0 0])
machine3: r(ta: 16 npp: [0 0 0 0 4 3 0 0 0 0 4 2 1])
machine4: r(ta: 16 npp: [0 3 0 0 0 5 0 3 0 0 0 3 3]))
profit: [5 7 5 11 8 10 6 8 3 12 9 8 4])
X1 = {RI.var.bounds 0.0 RI.sup}
X2 = {RI.var.bounds 0.0 RI.sup}
Ret Sol
in
{LP.solve
[X1 X2]
objfn(row: [8.0 5.0] opt: max)
constrs(
constr(row: [1.0 1.0] type: '=<' rhs:6.0)
constr(row: [9.0 5.0] type: '=<' rhs:45.0))
Sol
Ret}
--
Sebastian
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list