Heteroscedastic two-way ANOVA under constraints