This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
101 lines (85 loc) · 2.13 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# # Задача из объясения симплекс-метода min [чётко]
# [-2, -1, -3, -1],
# [1, 2, 5,-1, 4],
# [1, -1, -1, 2, 1],
# [0, 0, 1, 1]
from enum import Enum
from fractions import Fraction
from symplex_logic import SymplexLogic
from task_config import ExtremumType
# # № 3.1 min [чётко]
# [-1, 2, -1],
# [1, 4, 1, 5],
# [1, -2, -1, -1],
# [1, 1, 0]
# # № 3.2 min [чётко]
# [-1, -1, -1],
# [-1, 1, 1, 2],
# [3, -1, 1, 0],
# [1, 1, 0]
# # № 3.3 min [чётко]
# [-2, -1, 3, 1],
# [1, 2, 5, -1, 4],
# [1, -1, -1, 2, 1],
# [1, 1, 0, 0]
# # № 3.4 min [чётко]
# [-6, -1, -4, -5],
# [3, 1, -1, 1, 4],
# [5, 1, 1, -1, 4],
# [0, 1, 1, 0]
# # № 3.4 min [чётко]
# [-1, -2, -3, 1],
# [1, -3, -1, -2, -4],
# [1, -1, 1, 0, 0],
# [1, 1, 0, 0]
# # № 3.7 min [чётко]
# [-1, -1, -1, -1],
# [1, 3, 1, 2, 5],
# [2, 0, -1, 1, 1],
# [0, 0, 1, 1]
# № 3.10 min [чётко]
# [1, 3, 2, 4, -2],
# [-1, 0, 1, -2, -2, -2],
# [0, 1, -1, 1, -2, 0],
# [2, 1, 0, 5, 1, 7],
# [1, 1, 1, 0, 0]
# # № 3.12 у Ратушина max [чётко]
# [3, -2, 1, 3, 3],
# [2, -1, 1, 1, 1, 2],
# [-4, 3, -1, -1, -3, -4],
# [3, 2, 3, 5, 0, 3],
# [0, 1, 1, 1, 0]
# # Из разбора Иск базиса [min] - чётко
# [-2, -1, -3, -1],
# [1, 2, 5, -1, 4],
# [1, -1, -1, 2, 1],
# [0, 0, 0, 0]
# 4.1 Иск базис [min] - чётко
# [-1, -4, -1],
# [1, -1, 1, 3],
# [2, -5, -1, 0],
# [0, 0, 0]
# # 4.2 Иск базис [min] - чётко
# [-1, 10, -1],
# [-1, 5, 7, 13],
# [1, 14.5, 7, 15],
# [0, 0, 0]
# # 4.3 Иск базис [min]
# [-1, -2, -3, 4],
# [1, 1, -1, 1, 2],
# [1, 14, 10, -10, 24],
# [0, 0, 0, 0]
# # 4.4 Иск базис [min]
# [-1, 4, -3, -10],
# [1, 1, -1, 1, 0],
# [1, 14, 10, -10, 11],
# [0, 0, 0, 0]
# # 5.173
# [1, -4, 1, 1, 1, 1],
# [14, -14, 12, 5, 6, 3, 8],
# [1, -1, 2, 0, 1, 0, 0],
# [16, -16, 8, 7, 4, 5, 12],
# [0, 0, 0, 0, 0, 0]
available_support_elements = []
sorted_available_support_elements = sorted(available_support_elements, key=lambda x: x[1])
print(sorted_available_support_elements)