coin-or / OS

Optimization Services
Other
1 stars 4 forks source link

OSInstance does not work without variables #13

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: @svigerske

Original creation time: 2009-11-02 17:35:33

Assignee: somebody

Version:

Hi,

when I specify an instance without variables, then a call to osinstance->getNumberOfBinaryVariables() fails.

I called osinstance->setVariableNumber(0), but when I request something like the number of binary variables, then it throws an error "no variables defined". Shouldn't it just return 0?

When I skip this and try to solve my instance with Clp, then I get the same error thrown from the call to solve().

I had expected that such an instance is easy to solve, since it just consists of evaluating objective and constraints and deciding for feasibility.

Stefan

svigerske commented 5 years ago

Comment by kmartin created at 2009-11-08 22:57:50

Resolution: fixed