лаба 1 готова

This commit is contained in:
2023-12-18 19:02:57 +04:00
parent 9ca2e2b9a4
commit 93dd99a527
2 changed files with 8 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# VM_lab_PIbd_31_Akimova_A.A
# Участники: Акимова А.А.
# Участники: Акимова А., Спиридонов В.
# Вариант 6.
Для изготовления двух видов продукции P1 и P2 используют 4 вида ресурсов S1, S2, S3, S4.

12
main.py
View File

@@ -2,11 +2,13 @@ import numpy as np
import tabulate as tb
from SimplexMethod import SimplexMethod
table = np.array([[18, 1, 3],
[16, 2, 1],
[5, 0, 1],
[21, 3, 0],
[0, -2, -3]])
table = np.array([
[18, 1, 3],
[16, 2, 1],
[5, 0, 1],
[21, 3, 0],
[0, -2, -3]
])
result = np.zeros(2)
S = SimplexMethod(table)