Problem with the "lineprog" function

1 view (last 30 days)
Jose Emilio Loya
Jose Emilio Loya on 9 Dec 2020
Commented: Jose Emilio Loya on 10 Dec 2020
Hello, can someone help me? i´m doing a transportation problem where I have to minimaize the cost, but at the end when I run it, it show me:
'linprog' requires Optimization Toolbox.
Error in try1 (line 19)
[xopt, fval] = linprog(lpp.f,lpp.A,lpp.b,[],[],lpp.lb);
Do someone know what to do?
I´m using the R202b version
Than you.

Answers (1)

Matt J
Matt J on 10 Dec 2020
You must install the Optimization Toolbox.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!