AI physics solver