Re: [pymprog] Failed to run a basic example
An easy and flexible mathematical programming environment for Python.
Brought to you by:
lanyjie
From: Yingjie L. <la...@ya...> - 2014-03-19 09:25:17
|
Hi Rogdrigo, This looks like you have not properly installed the package. You should follow the directions on how to build and setup the package in the manual, which comes with the source and also available online: http://pymprog.sourceforge.net/ Best, Yingjie On Friday, February 28, 2014 5:21 AM, Rodrigo Cesar Silva <rod...@gm...> wrote: I tried to run the dive-in first example but an error appeared. Following are the commands I entered and the error: > > >IDLE 1.2.4 >>>> from pymprog import * # Import the module ># index and data >xid, rid = range(3), range(3) >c = (10.0, 6.0, 4.0) >mat = [ (1.0, 1.0, 1.0), > (10.0, 4.0, 5.0), > (2.0, 2.0, 6.0)] >b = (100.0, 600.0, 300.0) >#problem definition >beginModel('basic') >verbose(True) >x = var(xid, 'X') #create variables >maximize( #set objective > sum(c[i]*x[i] for i in xid), 'myobj' >) >r=st( #set constraints > sum(x[j]*mat[i][j] for j in xid) <= b[i] for i in rid >) >solve() #solve and report >print "Solver status:", status() > > > > > > >Traceback (most recent call last): > File "<pyshell#0>", line 1, in <module> > from pymprog import * # Import the module > File "C:\Python25\lib\site-packages\pymprog.py", line 31, in <module> > from glpk import LPX >ImportError: DLL load failed with error code 193 > > >What could be the problem? > > >Thanks, > > >Rodrigo. >------------------------------------------------------------------------------ >Flow-based real-time traffic analytics software. Cisco certified tool. >Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer >Customize your own dashboards, set traffic alerts and generate reports. >Network behavioral analysis & security monitoring. All-in-one tool. >http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk >_______________________________________________ >pymprog-help mailing list >pym...@li... >https://lists.sourceforge.net/lists/listinfo/pymprog-help > > > |