Project: Моделирование труднорешаемых задач
Views: 16Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu2204Kernel: Python 3 (ipykernel)
In [1]:
In [2]:
In [3]:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
У нас в лекциях, кстати, не ЦЛП!
In [4]:
In [9]:
# ==========================================================
# = Solver Results =
# ==========================================================
# ----------------------------------------------------------
# Problem Information
# ----------------------------------------------------------
Problem:
- Name: unknown
Lower bound: 17.0
Upper bound: 17.0
Number of objectives: 1
Number of constraints: 42
Number of variables: 33
Number of binary variables: 33
Number of integer variables: 33
Number of nonzeros: 21
Sense: maximize
# ----------------------------------------------------------
# Solver Information
# ----------------------------------------------------------
Solver:
- Status: ok
User time: -1.0
System time: 0.06
Wallclock time: 0.06
Termination condition: optimal
Termination message: Model was solved to optimality (subject to tolerances), and an optimal solution is available.
Statistics:
Branch and bound:
Number of bounded subproblems: 0
Number of created subproblems: 0
Black box:
Number of iterations: 227
Error rc: 0
Time: 0.07995367050170898
# ----------------------------------------------------------
# Solution Information
# ----------------------------------------------------------
Solution:
- number of solutions: 0
number of solutions displayed: 0
x[4] 1.0
x[5] 1.0
x[6] 1.0
x[7] 1.0
x[8] 1.0
y[0,5] 1.0
y[0,7] 1.0
y[1,5] 1.0
y[1,7] 1.0
y[1,8] 1.0
y[2,5] 1.0
y[2,6] 1.0
y[3,5] 1.0
y[3,7] 1.0
y[4,10] 1.0
y[4,11] 1.0
y[5,10] 1.0
y[6,9] 1.0
y[6,10] 1.0
y[7,9] 1.0
y[7,11] 1.0
y[8,11] 1.0
In [6]:
Пометим
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: