[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GLPK finds a solution that violates a constraint
From: |
Evgeny Kapun |
Subject: |
GLPK finds a solution that violates a constraint |
Date: |
Mon, 28 Jun 2021 00:51:26 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
I have a model (attached). It includes a constraint:
s.t. contra : x - y + 1000000 * z <= 1000000;
When I solve it (using glpsol --math model.sol), I get a solution with x=20,
y=10 and z=1, which clearly violates that constraint. Why is it happening?
model.mod
Description: application/xml-dtd
- GLPK finds a solution that violates a constraint,
Evgeny Kapun <=