Improving computational predictions of wind field by automatic optimization