setOptimParams function

Check user input related to optimizer