Why the paramters are adjusted in ojalgo?

144 Views Asked by At

Can someone explain me the function of the parameter "adjusted", which calls e.g. getAdjustmentExponent(), for lower, upper, weights,... in the class ModelEntity of the ojalgo package? I can understand the function if it should improve the numerical performance but I cannot understand why the constraints are adjusted like this:

Problem to compute:

min  2x+y  
s.t. x+y=3,
     0<=x<=3.0,
     0<=y<=0.05 <--

into ojalgo problem

min  2x+y 
s.t. x+y=3
     0<=x<=3.0
     0<=y<=0.5 <--

Is this a bug or do I overlook something?

1

There are 1 best solutions below

5
On BEST ANSWER

It's done to improve the numerical performance. Is there a problem with how it works, do you get incorrect solutions?

Your example suggests that something is wrong, but is that really what happens?