Linprog Error MATLAB R2017B
Show older comments
Hi, I've been encountering the following linprog error from my laptop:
"Attempt to execute SCRIPT linprog as a function:
Error"
Even when I used the codes from the link attached, I still get the same error code. https://www.mathworks.com/help/optim/ug/linprog.html
Accepted Answer
More Answers (1)
Kojiro Saito
on 7 Jun 2018
This answer might be helpful.
There would be filename conflict in your custom script and built-in linprog. Could you confirm whether you have created linprog.m in your MATLAB paths.
which -all linprog
If you find linprog.m in a folder which is not MATLAB installation folder, please rename the file to avoid file name conflict.
Categories
Find more on Linear Programming and Mixed-Integer Linear Programming 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!