Advertisement
Guest User

przykłady simplex

a guest
Jan 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. # Przykład
  2. goal_function_1 = [1, 3, 2]
  3. restriction1_1 = [1, 2, 1]
  4. restriction2_1 = [1, 1, 1]
  5. restriction3_1 = [0, 1, 2]
  6. restrictions_1 = [restriction1_1, restriction2_1, restriction3_1]
  7. signs_1 = ['<=', '<=', '<=']
  8. consts_1 = [5, 4, 1]
  9.  
  10. # Przykład 2 max
  11. goal_function_1 = [2, 1, 3]
  12. restriction1_1 = [1, 1, 1]
  13. restriction2_1 = [1, 2, 1]
  14. restriction3_1 = [0, 2, 1]
  15. restrictions_1 = [restriction1_1, restriction2_1, restriction3_1]
  16. signs_1 = ['=', '>=', '>=']
  17. consts_1 = [30, 10, 20]
  18.  
  19. # Przykład 3 min
  20. goal_function_1 = [12, 9, 16, 14]
  21. restriction1_1 = [4, 0, 4, 5]
  22. restriction2_1 = [2, 6, 4, 4]
  23. restrictions_1 = [restriction1_1, restriction2_1]
  24. signs_1 = ['=', '>=']
  25. consts_1 = [120, 180]
  26.  
  27. # Przykład 4 max
  28. goal_function_1 = [3, 7, 5]
  29. restriction1_1 = [1, 1, 1]
  30. restriction2_1 = [2, 3, 1]
  31. restrictions_1 = [restriction1_1, restriction2_1]
  32. signs_1 = ['<=', '<=']
  33. consts_1 = [80, 220]
  34.  
  35. # Przykład 5 max
  36. goal_function_1 = [32, 24, 48]
  37. restriction1_1 = [2, 2, 5]
  38. restriction2_1 = [1, 3, 2]
  39. restriction3_1 = [3, 1, 3]
  40. restrictions_1 = [restriction1_1, restriction2_1, restriction3_1]
  41. signs_1 = ['<=', '<=', '<=']
  42. consts_1 = [40, 30, 30]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement