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
Thank you for creating this package.
I'm re-implementing a R version into Python for easier deployment, but run into an issue that they're not returning the same.
I believe the following R code (using nloptr) is equivalent to the Python code, but the Python code is not returning the optimal solution.
I'm using nlopt.LD_AUGLAG for the optimizer and nlopt.LD_SLSQP for the local optimizer.
The text was updated successfully, but these errors were encountered:
NumesSanguis
changed the title
Discrepancy Python and R version - Python version not returning optimal response
Discrepancy Python and R version - Python version not returning optimal response | LD_AUGLAG & LD_SLSQP
Aug 9, 2024
Thank you for creating this package.
I'm re-implementing a R version into Python for easier deployment, but run into an issue that they're not returning the same.
I believe the following R code (using
nloptr
) is equivalent to the Python code, but the Python code is not returning the optimal solution.I'm using
nlopt.LD_AUGLAG
for the optimizer andnlopt.LD_SLSQP
for the local optimizer.Output
R
Python
R code
Simplified version of the Meta Robyn code.
Python code
Potential reasons
Might it be that there is not mistake in my Python code, but an issue with the algorithms itself, as mentioned in these issues?:
The text was updated successfully, but these errors were encountered: