Prediction of the Magnetic State of Ferromagnetic Objects by Assimilating Data into a Physical Model