Thats true, nonetheless you can get what you are looking for by turning the solve block into a function.
For further details you would need to attach the worksheet.
Your constraint Ropt1<1000 seems to be useless and without any effect. We don't see how your Ropt1 is defined, but as can be seen in the pic, its not dependent on the variables Ropt2 or XOpt2. So there is only one equation for two variables.
And even if you make Ropt1 dependent on at least one of the two variables its an inequality and so its just a constraint and not a forcing equation. It means that you'll probably get an infinite number of solutions.