How to increase precision of output produced by LINPROG ?
8 views (last 30 days)
Show older comments
Hello, I am solving LP problems by using linprog command. In some problems the output is quite big so the answer received is in the form like "2.7719e+06".
dec_vars=linprog(f,A,b,Aeq,Beq,lb,ub,x0)
This is the standard code to use linprog and the values entered in each of f,A,b.. and so on are all integers. Just to clarify again, the answer I get is right but its usually off by a 2-3 digit number. How do I avoid it and ensure the exact whole answer is visible?
Thanks
2 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!