I have developed an excel macro one that runs a solver at the supplier site and another at the client. The constraint conditions are created on the fly based on user input. However for more than one solutions I am getting a different answer.
What I can get is that solver constraint equations get ordered according to cell name which are different in two sheets? If I can stop the ordering of constraints this might get solved. How to do it?


Edit
I have the constraints in same order though it was a silly way to approach the problem but even after that the solutions are coming different in different excel workbooks.



If you give each of your constraint cells a name via
Formulas > Define Name, you can then use that name for the constraint by typing it in the Cell Reference field of the Add Constraint dialog:The constraints will then be displayed and ordered by name, not by address, in the Solver window:
You can do the same thing if you're configuring the Solver from VBA code, e.g.:
I'm not sure whether this is a good solution to your problem though. If the system of equations you're trying to solve has multiple different solutions then the result of running Solver may depend not only on the constraint settings and starting values but on Solver preferences, the versions of Excel and Solver, and quite possibly other properties of the two systems over which you have no control. Some things you could try include: