Effacer les filtres
Effacer les filtres

too many output arguments

1 vue (au cours des 30 derniers jours)
ravindra
ravindra le 27 Avr 2011
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 commentaire
Walter Roberson
Walter Roberson le 27 Avr 2011
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()

Connectez-vous pour commenter.

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 27 Avr 2011
variant with linprog
f = [-5,-7];
A = [3, 4; 2, 3];
b = [15; 12];
x = linprog(f,A,b);
  1 commentaire
ravindra
ravindra le 2 Mai 2011
Thank you very much.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Systems of Nonlinear Equations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by