start_time = time.time()
hours = 5
for i in range(hours):
print('---Running hour, ', i)
fsthr = i+35
lsthr = i + 1+ 35
network.lopf(network.snapshots[fsthr:lsthr], solver_name='gurobi', pyomo=False)
n=gp.Model('snapshot')
I am running an OPF model for the US for the year 2022. I had used 2022 actual data to get an idea. When i try to run the model, i get
WARNING:pypsa.linopf:Optimization failed with status warning and termination condition infeasible or unbounded.
How can i check what the constraint is?