**Algorithm 1.** CCHP operation scheduling

```
Input: month m, day d, hour h
```
**Output:** generation amount of CCHP ܪܥܥܲǡௗǡ, supply amount of public system ܲݑܾ݈݅ܿܵݐݏݕ݁݉ǡௗǡ

```
ͲͲ  ͵݁݉ܽ݊݀ܦݐܽܿݎݐ݊ܥ if
                     ǡͳ݁ݐܴܽݕ݃ݎ݊݁ܧ  ൌ ǡ݁ݐܴܽݕ݃ݎ݊݁ܧ
else 
                     ǡʹ݁ݐܴܽݕ݃ݎ݊݁ܧ  ൌ ǡ݁ݐܴܽݕ݃ݎ݊݁ܧ
if ܧ݊݁ݎ݃ݕܴܽݐ݁ǡ െ ܩܽݏܴܽݐ݁ǡ ൈ ቀ ସଶǤଷ ଵଶǤଶൈாಹು െ ͷǤͻͺͳቁ  Ͳ
     ǡௗǡ݅ܿݎݐ݈݁ܿܧ = ǡௗǡܲܪܥܥ
     0 = ǡௗǡ݁݉ݐݏݕܾ݈݅ܿܵݑܲ
else 
                 ݁݉ܽ݊݀ܦݐܽܿݎݐ݊ܥ  ǡௗǡܽ݀ܮ if
                                  ݁݉ܽ݊݀ܦݐܽܿݎݐ݊ܥ െ ǡௗǡ݅ܿݎݐ݈݁ܿܧ = ǡௗǡܲܪܥܥ
          ݁݉ܽ݊݀ܦݐܽܿݎݐ݊ܥ = ǡௗǡ݁݉ݐݏݕܾ݈݅ܿܵݑܲ
     else 
           0 = ǡௗǡܲܪܥܥ
          ǡௗǡ݅ܿݎݐ݈݁ܿܧ = ǡௗǡ݁݉ݐݏݕܾ݈݅ܿܵݑܲ
      ǡௗǡ݁݉ݐݏݕܾ݈݅ܿܵݑܲ ,ǡௗǡܲܪܥܥ return
```