Virtual control with application to hard constrained control problems