Cannot see CBC output, independent of logLevel Setting
- Dominant language
- JetBrains MPS
- Stars
- 192
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
I tried the basic example problem but I tried to manipulate the `cbcModel.logLevel` parameter in order to see the CBC output. It correctly solves the problem, but there is no output to the python console. How do I see the CBC output?
```
import numpy as np
from cylp.cy import CyCbcModel, CyClpSimplex
from cylp.py.modeling.CyLPModel import CyLPModel, CyLPArray
model = CyLPModel()
x = model.addVariable('x', 3, isInt=True)
y = model.addVariable('y', 2)
A = np.matrix([[1., 2., 0],[1., 0, 1.]])
B = np.matrix([[1., 0, 0], [0, 0, 1.]])
D = np.matrix([[1., 2.],[0, 1]])
a = CyLPArray([5, 2.5])
b = CyLPArray([4.2, 3])
x_u= CyLPArray([2., 3.5])
model += A*x <= a
model += 2 <= B * x + D * y <= b
model += y >= 0
model += 1.1 <= x[1:3] <= x_u
c = CyLPArray([1., -2., 3.])
model.objective = c * x + 2 * y.sum()
s = CyClpSimplex(model)
cbcModel = s.getCbcModel()
cbcModel.logLevel = 1
cbcModel.branchAndBound()
'solution'
sol_x = cbcModel.primalVariableSolution['x']
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.