The optimizers use references to the parameters. If you are changing these parameters, I would recreate the optimizer instead of trying to manipulate the references somehow.
Note that running estimates would be reset using this workflow.