Optimal on-line (m, k)-firm constraint assignment for real-time control tasks based on plant state information