[pymprog] setting parameters in v1.1.2
An easy and flexible mathematical programming environment for Python.
Brought to you by:
lanyjie
|
From: Sarah V. <sva...@gm...> - 2018-03-14 18:16:15
|
Hi,
I am experiencing an issue setting parameters in v1.1.2. From the webpage
documenting v1.0, I expect that executing:
>>> r = {(3,4):3, (1,2):4}
>>> R = par('R', r)
would result in
>>> R{(1, 2): (R[1,2]:4), (3, 4): (R[3,4]:3)}
However, what actually occurs is
>>> R{(1, 2): [(R[1:4), (2]:0)], (3, 4): [(R[3:3), (4]:0)]}
Based on the documentation this seems like a bug. Is there a workaround for
this?
Thanks,
Sarah
|