A RULE BASED MODULAR ENERGY MANAGEMENT SYSTEM FOR AC DC X2026