Skip to main content

2025
Feb
25
awarded Popular Question
2024
Jun
28
awarded Popular Question
2023
Nov
30
awarded Popular Question
2022
Sep
3
comment Why is this if/else list comprehension not working?
perfect that worked, thanks. Had the 'for' loop in twice.
Sep
3
accepted Why is this if/else list comprehension not working?
Sep
3
asked Why is this if/else list comprehension not working?
2021
Nov
19
awarded Student
Nov
14
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
Nov
14
comment Python MIP unable to add Binary Variable vector
python 3.7.6, gurobi 9.1.2, mip '1.13.0'
Nov
14
asked Python MIP unable to add Binary Variable vector
Nov
9
accepted Gurobi has a slower speed than CBC solver (using PuLP)?
Nov
9
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.
Nov
8
comment Gurobi has a slower speed than CBC solver (using PuLP)?
thanks, added above
Nov
8
revised Gurobi has a slower speed than CBC solver (using PuLP)?
added log files
Nov
8
asked Gurobi has a slower speed than CBC solver (using PuLP)?
Nov
8
comment How to interpret python cProfile output
thanks for the clarification.
Nov
7
asked How to interpret python cProfile output
Aug
30
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?
Aug
30
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.
Aug
29
asked Importing functions from other file is not working for me
1 2 3