Problem with the "lineprog" function

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일

1 개 추천

You must install the Optimization Toolbox.

카테고리

질문:

2020년 12월 9일

댓글:

2020년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by