Constraint changes in NEMDE

Constraint changes in NEMDE