Introductie tot optimalisatie in Python
Jasmin Ludolf
Content Developer
Doelfunctie:

Doelfunctie:
$p = 40q - 0.5q^2$
Afgeleide: helling van de doelfunctie verandert met de ene variabele
$\frac{dp}{dq} = 40 - q$
Doelfunctie:
$F = K^{0.34} \times L^{0.66}$
Partiële afgeleiden: hoe de helling verandert t.o.v. elke variabele
$\frac{\partial F}{\partial K}$ en $\frac{\partial F}{\partial L}$
Doelfunctie:
from sympy import symbols, diff, solveK, L = symbols('K L') F = K**.34 * L**.66dF_dK = diff(F, K) dF_dL = diff(F, L)crit_points = solve([dF_dK, dF_dL], (K, L))print(crit_points)
[]
Doelfunctie:

Let op:

Introductie tot optimalisatie in Python