Research Article
Cost-Effective Energy Usage in a Microgrid Using a Learning Algorithm
| . | | | | Set and The convergence condition and the learning | | parameter | | Initialize | | repeat | | if then | | Charge the battery Eq. (2) | | else | | define , | | generate random number | | if then | | | else random action else than | | end if | | Execute | | Update the state of the battery Eq. (2) | | end if | | Observe and Update ; | | Equation (5) | | | until |
|