unnötige Variablen löschen

This commit is contained in:
Nicolai 2026-04-24 15:45:11 +02:00
parent 4bf7d47007
commit a03c0c6f77
2 changed files with 0 additions and 13 deletions

View File

@ -835,19 +835,6 @@ def build_model(
>= model.bunker_target[j] - model.bunker_total[j, w_prev, d_prev] >= model.bunker_target[j] - model.bunker_total[j, w_prev, d_prev]
) )
model.lambda_J = pyo.Param(initialize=100_000, mutable=True, within=pyo.NonNegativeReals)
def welzow_to_J(m):
return sum(
m.x["Welzow", "J", w, d, s]
for w in m.W
for d in m.D
for s in m.S
if ("Welzow", "J", w, d, s) in m.x
)
model.bonus_welzow_J = pyo.Expression(rule=welzow_to_J)
def demand_rule(m, j, w, d): def demand_rule(m, j, w, d):
return m.dV_N[w, d] + m.dV_W[w, d] if j == "V" else m.d[j, w, d] return m.dV_N[w, d] + m.dV_W[w, d] if j == "V" else m.d[j, w, d]