Advertisement
Ostu

Untitled

Mar 12th, 2022
1,187
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %% F1 abc
  2.  
  3. % podpunkt a oraz b
  4. A11 = [-5 0 4 2;...
  5.     0 2 -2 3];
  6. b11 = [1;...
  7.     5];
  8.  
  9. % podpunkt c
  10. Aeq11 = [0 0 1 1];
  11. beq11 = 3;
  12.  
  13. % optymalizacja
  14. x011 = [1 1 1 1];
  15. [x11,fval11,flaga11,atput11] = fmincon(@deJ,x011,A11,b11,Aeq11,beq11)
Advertisement
RAW Paste Data Copied
Advertisement