Skip to main content
beginner_python's user avatar
beginner_python's user avatar
beginner_python's user avatar
beginner_python
  • Member for 5 years, 1 month
  • Last seen more than 2 years ago
awarded
awarded
awarded
comment
Why is this if/else list comprehension not working?
perfect that worked, thanks. Had the 'for' loop in twice.
Loading…
awarded
comment
Python MIP unable to add Binary Variable vector
yeah its a strange one, the docs say minimum python 3.5 but I am using 3.7 so shouldn't be an issue. Will put it to the github then instead. thanks
comment
Python MIP unable to add Binary Variable vector
python 3.7.6, gurobi 9.1.2, mip '1.13.0'
Loading…
comment
Gurobi has a slower speed than CBC solver (using PuLP)?
thanks @Stuart Mitchell , it made it slightly faster than CBC (~0.2 seconds worth). Agree it seems you probably only see material time savings for larger problems than mine.
comment
revised
Loading…
Loading…
comment
How to interpret python cProfile output
thanks for the clarification.
asked
Loading…
comment
Importing functions from other file is not working for me
thanks. Solution1 is not working for me, getting an error "ImportError: attempted relative import with no known parent package". Sol2 is what i was trying to do. i tried typing the above in the terminal but get an error from the $ character.What should the "my_app" be in this context? the folder where the files are saved?
comment
Importing functions from other file is not working for me
yes they are in the same path. using import pathlib print(pathlib.Path().resolve()) on the original file the path is "C:\Users\Cian\Desktop\Project" but when I use sys.path the path is C:\\Users\\Cian\\Desktop\\Project. maybe the double '\' throwing it off.
Loading…