Problem with the "lineprog" function

1 次查看(过去 30 天)
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.

回答(1 个)

Matt J
Matt J 2020-12-10
You must install the Optimization Toolbox.

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by