I am using Python in FEA a solver and i have an objective function to minimize. I thought about using scipy.optimize but it doesn't work. No optimization is carried out and no errors either... See just after, the function is working very well but no optimisation from minimize whatever the method used...
>>> fonction_calcul(1)106,691348022978>>> fonction_calcul(0.5)99,4888918302546>>> fonction_calcul(0.3)90,7397102848129>>> res = minimize(fonction_calcul,0.5,method='BFGS',options={'xtol': 1e-5,'disp': True})Optimization terminated successfully. Current function value: 99.488892 Iterations: 0 Function evaluations: 2 Gradient evaluations: 1
The value which minimize should be 0.027 and as you see it stays blocked at the initial value and consider the optimization sucessfully done...
I have tried different methods...