Good bosses, I draw a python, hopes to help take a look at the great god,
A key part of the code below
Where D=4, N=24.
For d in d:
M=unit_commitment (d)
Pyo. SolverFactory (' CBC). Solve (m). The write ()
FIG.=PLT figure ()
Ax1=FIG. Add_subplot (2, 2, 1)
Ax2=FIG. Add_subplot (2, 2, 2)
Ax3=FIG. Add_subplot (2, 2, 3)
Ax4=FIG. Add_subplot (2, 2, 4)
For n in n:
Ax1. Bar (Time + 1, [sum (m.x] [n, t () for n n) in the for t in Time])
Normal generates four 24 hours a day, I want to put these four figure in a figure, but I get is the same as the following figure (four figure, each figure in the four figure, but there are only the first data, everything else is blank)
Great god give advice or comments, thanks!