Hi,
When you say, "the constraints that are related to this problem are the subset of ALLCONSTRAINTS " I'm assuming that you're mathematical model references a subset of AllConstraints which includes all constraints in your model.
I've experienced the same thing you have because I defined my subset incorrectly. Specifically, I forgot to include the constraints that are created from variables with definitions. I've found the best way to address this problem was by using references to sections in the model tree when defining my subset.
In the example below, 'Section_2_Mathematical_Model' is a Section in my model tree; 'Unused_Section'
is a declaration identifier in the model tree. The set MyModelConstraints contains all constraints (including variable definition constraints) in the section 'Section_2_Mathematical_Model', but excludes those in the 'Unused_Section'
SET:
identifier : MyModelConstraints
subset of : AllConstraints
index : iSC
definition : AllConstraints * Section_2_Mathematical_Model - AllConstraints * Unused_Section