The limit to the total number of adjustable cells depends on the edition of RISKOptimizer being used:
The maximum number of adjustable cell groups is 32767.
The maximum number of input ranges in a single adjustable cell group is 32767.
See Also Error -38: This Edition of RISKOptimizer's Capabilities Were Exceeded