Revised Automated flexibility management module

Summary
Revised Automated flexibility management module realized with a rule-based control system to verify the actions proposed by the AI-based optimization module. The rule-based control also includes mechanisms to take over when the DRL algorithm is not confident about the right action.