View source
Checks the /sim/weight[n]/{selected|opt} values and sets the appropriate weights therefrom.