Skip to content

Commit f219ccc

Browse files
committed
Update constraint.py
1 parent c652e54 commit f219ccc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pownet/modeling/constraint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"""constraint.py: Contains functions for constructing the objective function and constraints of the optimization model.
22
Throughout this module, the number 24 is the number of hours in a day. This number is used to calculate the index of the next day in the optimization model."""
33

4-
from __future__ import annotations
54
import gurobipy as gp
65
import networkx as nx
76
import pandas as pd
87

8+
from pownet.core import SystemInput
9+
910

1011
"""Functions for thermal-unit constraints
1112
"""
@@ -850,7 +851,7 @@ def add_c_flow_balance(
850851
flow: gp.tupledict,
851852
timesteps: range,
852853
step_k: int,
853-
inputs: "SystemInput",
854+
inputs: SystemInput,
854855
nodes: list,
855856
node_edge: dict,
856857
node_generator: dict,

0 commit comments

Comments
 (0)