the current code makes the assumption that the objective is always well defined
however in real life the evaluation may fail (finite difference solver convergence, numerical error etc)
I dont think prima can handle that yet,
for example at OpenTURNS our cobyla version (translated in C from the old fortran 77 version) can end the minimization according to a boolean returned by the objective:
https://github.com/openturns/openturns/blob/master/lib/src/Base/Optim/algocobyla.c#L310
it didnt occured to me when I wrote #69, but the termination boolean is needed the objective function level
(the one at #69 can stay as we can have a termination bool not related to the objective function call, ie the user clicks stop in a GUI)
so I propose to add a boolean to the OBJ, OBJCON Fortran callbacks similarly to what is done in #69
probaby a lot of the example/test/matlab code has to be changed because of this
what do you think ?
the current code makes the assumption that the objective is always well defined
however in real life the evaluation may fail (finite difference solver convergence, numerical error etc)
I dont think prima can handle that yet,
for example at OpenTURNS our cobyla version (translated in C from the old fortran 77 version) can end the minimization according to a boolean returned by the objective:
https://github.com/openturns/openturns/blob/master/lib/src/Base/Optim/algocobyla.c#L310
it didnt occured to me when I wrote #69, but the termination boolean is needed the objective function level
(the one at #69 can stay as we can have a termination bool not related to the objective function call, ie the user clicks stop in a GUI)
so I propose to add a boolean to the OBJ, OBJCON Fortran callbacks similarly to what is done in #69
probaby a lot of the example/test/matlab code has to be changed because of this
what do you think ?