YimingYAN / revised

Revised Simplex Method
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

problem #1

Open abolfazlfsh opened 4 years ago

abolfazlfsh commented 4 years ago

hi, there is an issue on "find_basic_var_to_leave_basis" function, because we have to choose the minimum value among the positive p.x(p.basis)./p.updCol s but you choose the minimum value among all of these values, I've tried a lot to solve this problem , unsuccessful tries, I'm really appreciate you to solve this problem sincerely yours,

abolfazlfsh commented 4 years ago

for example in LP book bazara there is an example which doesn't work in your program if we choose A , b and c like this the problem wouldn't solve at all. A = [ 1 1 1 ;-1 2 -2 ; 2 1 0 ]; b = [4 6 5]'; c = [-1 -2 1]'; inq = [-1 -1 -1]; p = revised(A,b,c,inq,'min'); p.solve;