Online Optimal Control Prediction Method for Control Allocation