We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug m.setLogfile(None) occurs an error below Traceback (most recent call last): ....... m.setLogfile(None) File "src\pyscipopt\scip.pxi", line 4858, in pyscipopt.scip.Model.setLogfile TypeError: expected bytes, NoneType found
m.setLogfile(None)
To Reproduce
from pyscipopt import Model m = Model() x = m.addVar(name='x', vtype='I') y = m.addVar(name='y', vtype='I') m.addCons(x+2*y <= 3) m.addCons(2*x+y <= 3) m.setObjective(x+y, 'maximize') m.setLogfile('opt.log') m.optimize() m.setLogfile(None) m.writeStatistics('stat.log')
Expected behavior m.setLogfile(None) stop log the file and no error occurs.
Screenshots The fixed code
System
pyscipopt
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hello, @liangbug! Can you please create a PR with your proposed changes? This seems useful if I understood it correctly :)
Sorry, something went wrong.
Hi, @Joao-Dionisio, I created a PR #813 .
Fixed in #813.
Thank you @liangbug!
No branches or pull requests
Describe the bug
m.setLogfile(None)
occurs an error belowTraceback (most recent call last):
.......
m.setLogfile(None)
File "src\pyscipopt\scip.pxi", line 4858, in pyscipopt.scip.Model.setLogfile
TypeError: expected bytes, NoneType found
To Reproduce
Expected behavior
m.setLogfile(None)
stop log the file and no error occurs.Screenshots
The fixed code
System
pyscipopt
? pip install pyscipopt==4.4.0Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: