If consCell is empty, because there are no constant variables to declare, then the generated solver does not compile because the flag associated with the variables has not been eliminated. The solution is to detect this behavior and delete the flag if the cell is empty.
The same should apply for the other variable cells.
If
consCell
is empty, because there are no constant variables to declare, then the generated solver does not compile because the flag associated with the variables has not been eliminated. The solution is to detect this behavior and delete the flag if the cell is empty.The same should apply for the other variable cells.