Closed dibondar closed 2 years ago
Hi Dibondar, I noticed that the coefficients of
obj = 3.360124005463267e-36x⁴⁰ - 2.063135343212682e-33x³⁸ + 7.737864395102542e-31x³⁶ - 2.0411920994033823e-28x³⁴ + 4.1216331637551674e-26x³² - 6.613486025637102e-24x³⁰ + 8.598482830688325e-22x²⁸ - 9.159301080688455e-20x²⁶ + 8.040326833190711e-18x²⁴ - 5.826362292706338e-16x²² + 3.478249843620919e-14x²⁰ - 1.7004343112432733e-12x¹⁸ + 6.729812063761517e-11x¹⁶ - 2.1131330221589752e-9x¹⁴ + 5.0499295994001044e-8x¹² - 8.198400590466459e-7x¹⁰ + 5.0724934755230575e-6x⁸ + 0.00013545758728621945x⁶ - 0.0040597146294860855x⁴ + 0.04496251247664391x² + 0.809999999999998
stretch across 36 orders of magnitude which is pathological for the SDP solver. So you should scale the problem to avoid this. For instance, let x -> 10x so that
obj = 3.360124005463267e4x^40 - 2.063135343212682e5x^38 + 7.737864395102542e5x^36 - 2.0411920994033823e6x^34 + 4.1216331637551674e6x^32 - 6.613486025637102e6x^30 + 8.598482830688325e6x^28 - 9.159301080688455e6x^26 + 8.040326833190711e6x^24 - 5.826362292706338e6x^22 + 3.478249843620919e6x^20 - 1.7004343112432733e6x^18 + 6.729812063761517e5x^16 - 2.1131330221589752e5x^14 + 5.0499295994001044e4x^12 - 8.198400590466459e3x^10 + 5.0724934755230575e2x^8 + 135.45758728621945x^6 - 40.597146294860855x^4 + 4.496251247664391x^2 + 0.809999999999998
Then it gives the correct global minimum 0 located at x = (10×) 0.8101203314765792.
Thanks a lot, Jie!
I wanted to note that the library HomotopyContinuation.jl yields the correct result for the original unscaled problem.
In a quantum physics problem, I need to find minimum of the univariate polynomial objective function
obj(x)
defined via the following code:Theoretically, we know that
obj(x)
has a local minimum atx=0
and its global minimum of 0 is located atx ≠ 0
. This is confirmed by simply plotting the polynomialIf the optimization is run,
a local minima is certified
I played with this problem a lot with no success. Any help would be very much appreciated!