The field of machine learning for energy management has lately seen encouraging developments, particularly with reinforcement learning augmented by a safety filter (OptLayerPolicy) and a metaheuristic procedure that yields a decision-tree-based control law (TreeC). So far, however, their capabilities have only been confirmed within simulated environments. The present work offers real-world verification of these two techniques, benchmarking them alongside model predictive control and basic rule-driven controllers. The experimental setup consisted of the electrical infrastructure of four replica residential units, each incorporating a dedicated battery, a photovoltaic array, and a dynamic load emulator replicating both an uncontrollable household demand and a steerable electric vehicle charging station. The data indicates that the rule-based logic, TreeC, and model predictive control attained near-identical operational costs, separated by a mere 0.6%. The reinforcement-learning controller, which remained in a learning phase, produced costs 25.5% above those of the competing approaches. Follow-up simulation studies suggest that further cost reductions are attainable by supplying TreeC with a more representative training corpus and by correcting inaccuracies in the MPC setup that stem from its dependence on reliable data streams from disparate sources. The OptLayerPolicy module makes it feasible to train a reinforcement learning agent safely and online in a physical setting, provided the constraint specification is accurate. Although the safety-layer concept remains susceptible to faults, it nevertheless delivered measurable benefits for every technique examined. TreeC, which depends on a faithful simulation environment for its training, posted the most secure real-world behavior, surpassing the grid limit by a mere 27.1 Wh, compared with 593.9 Wh recorded for reinforcement learning.