yep you can do that as following :

for param_group in optimizer.param_groups:
param_group[‘lr’] = lre

just set lre as the value you want so I guess previous

lre =  lre - (maximum - minimum /nb_epochs)