Constrained optimal control: an application to semiactive suspension systems