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.
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