maximiert C= 528r + 492s + 348w
unter:Maximierungs lineares System mit drei Variablen
1) r + s + w ≥ 12
2) r ≤ 4 --> r + 0 + 0 ≤ 4
3) w ≥ 3s --> 0 – 3s + 1w ≥0
ich keine Codebeispiele online finden kann, wo ich maximieren kann drei Variablen mit Ungleichungen. Die nächstgelegene ich war etwas gefunden, das wie folgt aus einer anderen Frage aus: Solving linear equations w. three variables using numpy
import numpy as np
a = np.array([[2, -4, 4], [34, 3, -1], [1, 1, 1]])
b = np.array([8, 30, 108])
x = np.linalg.solve(a, b)
schauen Sie in 'scipy.optimize' –