General Constrained Dynamic models in economics