Multi-precision linear programming
Show older comments
I need to solve specific linear programming problem which is based on Mallows permutation probability distribution. This exponential distribution for high distances of permutations suffer from the lose of accuracy. So, I need the multi-precision support to handle numerical consistency and stability of my linear programming problem.
What are my options with Matlab 2020a?
Accepted Answer
More Answers (1)
John D'Errico
on 9 May 2020
Edited: John D'Errico
on 9 May 2020
0 votes
None in MATLAB. However, I there is some question as to you really need super high multiple precision support. Do you have data that is accurate to 20 or more digits of precision? If so, then I am impressed. And if your data is not that accurate, then the answers you would get from that extra high precision are just an illusion. But do as you will.
I might knote that few physical constants are known to that high precision. From what I can see, constants like the Planck constant, the Volt and the kilogram all seem to be accurate only to some parts per billion. If so, I'd be pretty impressed if you have information that is known to twice as many significant digits. Well done there.
4 Comments
John D'Errico
on 9 May 2020
As per your now deleted comment as to why you want it, I'm sorry, but MATLAB does not support extended precision beyond the symbolic toolbox or my own tools like HPF. And they are not valid for use in the optimization toolbox.
If you do attempt to use a tool like linprog, while passing in higher precision data in one of those forms, it will fail, probably with the error:
Error using linprog (line 152)
LINPROG requires the following inputs to be of data type double: 'A'.
At best, you would need to write an LP tool of your own, that works with one of those two higher precision tools. Or, you might be able to find something in a different form where you could compile code into a Mex form.
Michal
on 9 May 2020
"I'd be pretty impressed if you have information that is known to twice as many significant digits"
MAD magazine issue 26 is known to be exactly one potrzebie thick, or 2.2633484517438173216473 mm.
I guess that makes MAD magazine a more fundamental unit than those so called "constants".
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!