Is there any difference between equality constraint and assignment #940
-
Hi,Johan Thanks and Regards, Xin |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an optimization problem in 6 variables
This is an optimization problem in 4 variables
and is a convenient way of writing
Some solver might be more efficient with equalities in high dimensions, some inefficient and prefer a condensed form, and most likely it makes no difference as the solver will presolve the model anyway to put it in its preferred form Solvers only solve problems up to specified numerical tolerance, and might thus consider 0.999999999 to be integer enough. Some solvers will post-process and clean up integers, most won't. |
Beta Was this translation helpful? Give feedback.
This is an optimization problem in 6 variables
This is an optimization problem in 4 variables
and is a convenient way of writing
Some solver might be more efficient with equalities in high dimensions, some inefficient and prefer a condensed form, and most likely it makes no difference as the solver will presolve the model anyway to put it in its preferred form
Solvers only solve problems up to specified numerical tolerance, and might thus conside…