Skip to content

Tolerance on RHS? #2544

@peno64

Description

@peno64

Is there a tolerance setting for the RHS?
I can't post the whole model here but the constraints that are involved are:

RC144423IngAmountRecipe44334: +0.1205 x_144423_44334 -0.8795 x_144423_41405 -0.8795 x_144423_40742 = +0
RC144423IngAmountRecipe41405: -0.1 x_144423_44334 +0.9 x_144423_41405 -0.1 x_144423_40742 = +0
RC144423IngAmountRecipe40742: -0.0205 x_144423_44334 -0.0205 x_144423_41405 +0.9795 x_144423_40742 = +0

The result of these variables are:
x_144423_44334 8.75510204e-05
x_144423_41405 1e-05
x_144423_40742 2.4489796e-06

which gives:

RC144423IngAmountRecipe44334 -3.989796e-07
RC144423IngAmountRecipe41405 0
RC144423IngAmountRecipe40742 3.989796e-07

Close to 0 but not really 0 and 3.989e-7 is not good enough in my case.

Is there a tolerance setting such that it is closer to 0?

I tried all tolerances from https://ergo-code.github.io/HiGHS/dev/options/definitions/ but none of them seem to help.

If there is no tolerance possible, is there a way to reformulate this such that the constraints are stricter followed and that presolve or scaling does not elimitate the changes again. For example I could multiply the constraint with 1000 for example but will scaling not undo that?

Thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions