Strategy for optimizing an F1 car’s performance based on FIA regulations