Applies contraints to parameters.
constraint(par, type = NA)
par
names vector with parameters
type
character with constraint type