karmarkar fails solving trivial problem
Bug Description
karmarkar fails solving the following trivial problem:
Aeq=[
1,1,-1,-1,0;
0,1,1,0,-1;
-1,-1,-1,-1,-1
]
beq=[0;1;-1];
f=[1;1;1;1;1];
[xopt,fopt,exitflag]=karmarkar(Aeq,beq,f)
at line 68 of function karmarkar_findStandardLP ( /Applications/scilab-2024.0.0.app/Contents/share/scilab/modules/optimization/macros/karmarkar.sci line 521 )
at line 198 of function karmarkar ( /Applications/scilab-2024.0.0.app/Contents/share/scilab/modules/optimization/macros/karmarkar.sci line 235 )
karmarkar: Wrong value for input argument #4. x0 does not satisfy the equality constraints.
What is the expected correct behavior?
There is a trivial feasible x0 which can be obtained as Aeq\beq
--> Aeq\beq
ans =
0.
0.5000000
0.5000000
0.
6.482D-17
hence the function fails to compute a strictly feasible point.