GrUMPy
GrUMPy copied to clipboard
A Python library for visualizing algorithms for solving mathematical optimization problems.
I tried to run the BBVis.py example to get a grasp of the tree visualization feature, but I am getting the following error from line 27 `gnuplot_image = io.StringIO(bt.GenerateTreeImage())` I...
Line 369-370 in the `BranchAndBound.py` ```python scores[i] = min(pseudo_u[i][0]*(1-var[i].varValue), pseudo_d[i][0]*var[i].varValue) ``` should be updated to ```python scores[i] = min(pseudo_u[i][0]*(math.ceil(var[i].varValue)-var[i].varValue), pseudo_d[i][0]*(var[i].varValue- math.floor(var[i].varValue)) ``` to accommodate for non-binary problems.
I found `easy_install` installed 0.84, while the current version is 0.85. And, the 0.84 version is not working. Coorection: The version `0.84` I referred was actually `0.8.4`.
The PIL link in the README should rather point to its successor [Pillow](https://python-pillow.org/). The code runs fine with Pillow installed.
Scripts in examples and test directory do not work. They should import coinor.grumpy not grumpy. They still do not work even the importing is fixed. run.py in examples directory imports...