Adding additional variable to optimizer params

Did you solve this issue? I’m having a similar problem