Set avoidance weights at runtime

I’m trying to change the rvo avoidance weight at runtime. I can get the weight but not set it. How do I change the rvo avoidance weight at runtime?