LP optimization error for the objective function
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to run an LP optimization. My objective function is
f= @(x) 3*x(1:N)-2*x(N+1:2*N)-5*x(2*N+1:3*N)-3*x(3*N+1:4*N);
where N=5 and I get the error like that:
"LINPROG requires the following inputs to be of data type double: 'f'"
do you have any idea how to solve it?
I've seen other people mentioning this error but I don't get how could work in my case
thanks in advance
Nikolas
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!