How do you ensure a machine learning model respects physical constraints of the system it is predicting?