Text this: Physics aware machine learning for micromagnetic energy minimization