A general equation and optimal design for a 2-factor restricted region