I need to create a loop where I can cycle through three variables and determine the maximum output. Here is an example...
First loop
$var_one = .01
$var_two = .01
$var_three = .98
run calculation for vars
Second Loop
$var_one = .02
$var_two = .01
$var_three = .97
run calculation for vars
This loop would run through ALL possible values making sure that the total of all variables would always equal 1. There could be more than three variables so this will be dynamic. I have no idea how to make this. Any thoughts?