Simulate Linear Regulator Problem any dimensional without uncertainty