Advertisement
Ostu

Untitled

Mar 12th, 2022
1,763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.24 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement