You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am solving the same problem in matlab and R but I get different results (the solutions are completely different for some variables not just a little here and there) although all the inputs are the .same for completeness here is the matlab code:
Are you sure that the optimal solution to your problem is unique? Is it possible that the MATLAB and R codes are returning different solutions that are both optimal? It's quite easy to formulate examples with infinitely many optimal solutions . Even a small variation in parallel threading, run time libraries, etc. can then result in the solvers finding different solutions that are both optimal.
I am solving the same problem in matlab and R but I get different results (the solutions are completely different for some variables not just a little here and there) although all the inputs are the .same for completeness here is the matlab code:
and the R code:
Any insights on why this might happen?
The text was updated successfully, but these errors were encountered: