Sliding mode optimization in dynamic LTI systems