Machine Learning Based Simulation And Control Framework For Power Distribution Systems With Transactive Elements