0

Adding a simple example (working on much harder but the problem is the same) - it's price/profit optimal combination.

When I add this constraint everything breaks (simple constraint to x > A)

for j in range(N):
      model.addCons(x[j] >= A[j])

Warning: SCIPgetSolVal cannot only be called in stage SOLVING without a valid solution (current stage: 10)

While without it everything works ok

AlexK
  • 2,855
  • 9
  • 16
  • 27

0 Answers0