update

Calculates the optimal control input to correct for the given state error.

Return

The calculated optimal control input as a Matrix.

Parameters

error

The current state error of the system, represented as a Matrix.