Closed RafaHPSUnicamp closed 1 year ago
One option would be to add a small tolerance to your constraint calculation. E.g.
abs(S_comercio + S_insumo - S_total)
...
problem.constraints[0] = "=<1e-6"
This issue is stale and will be closed soon. If you feel this issue is still relevant, please comment to keep it active. Please also consider working on a fix and submitting a PR.
Hi.
My code is now working. However, is still going as a unfeasible problem, despite the solutions looks like feasible solution. Also, the errors is close to zero, according to this code:
So, what adjusts I needed to do to the FALSE become TRUE?? As can see, the errors in the
solution.constraint_violation
, is closing to zero. However, it still appoint as unfeasible solution. Also, I checked out that restrictions is now obeyed.