Support functions for fmincon and changes to parameters.