A method of applying feedback control on peripheral units supplying energy to manufacturing units in a manufacturing facility uses a trained model, and includes: mapping supply relations between peripheral units and manufacturing units into a schema; establishing communications with sensors monitoring peripheral unit metrics indicative of energy transfer from the peripheral units to the manufacturing units; training the model based on the schema and training data gathered by communication with the sensors during a training period, the trained model predicting energy usage by the peripheral machines with a specified degree of accuracy; and during a control period following the training period, gathering further data from the sensors and minimizing energy usage by the peripheral units while supplying the total energy demanded by the manufacturing units by controlling at least one of the peripheral units based on an outcome of inputting the further data into the trained model.