thouska / spotpy

A Statistical Parameter Optimization Tool
https://spotpy.readthedocs.io/en/latest/
MIT License
246 stars 149 forks source link

Specifiying if we want to minimize or maximize the objective function #270

Open TheodorB opened 2 years ago

TheodorB commented 2 years ago

It seems some of the algorithms minimize and some maximize. When specifying optimization_direction = 'maximize' to SCEUA it is still trying to minimize. Any suggestions?

Thanks, Theodor

thouska commented 2 years ago

Hi @TheodorB, your are right, some algorithms minimize, some maximize. During developement I decided not to change this behavior to provide the behavior as in the original published version of each algorithm. The "optimization_direction" keyword was introduced to allow the printing status and the user to find out, in which direction a particular algorithm is optimizing. It's not a setting that should be changed. In case thats confusing, I am happy about alternative suggestions.