필터 지우기
필터 지우기

too many output arguments

조회 수: 1 (최근 30일)
ravindra
ravindra 2011년 4월 27일
I am solving an optimization problem as max z=5x1+7x2; subjected to constraints 3x1+4x2<15; 2x1+3x2<12. I used GA toolbox but I am getting error that too many output argumrnts. my all syntax for toolbox are correst still I receive this message. Please can anybody help me. please
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 4월 27일
We need to see the line of code that the problem is being reported on, the call to ga(), and the definitions of any functions you are passing in to ga()

댓글을 달려면 로그인하십시오.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2011년 4월 27일
variant with linprog
f = [-5,-7];
A = [3, 4; 2, 3];
b = [15; 12];
x = linprog(f,A,b);
  댓글 수: 1
ravindra
ravindra 2011년 5월 2일
Thank you very much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by