V-Ray Scene Optimisation Script

the maths involved is here:
http://forums.chaosgroup.com/showthread.php?79184-V-Ray-Scene-Optimisation-Script&p=627505#post627505

I turn off “divide shading subdivs”, so each AA step MULTIPLIES the base subdivisions.
In the case of the Archviz preset, the math is as follow (well, for how it shows up now. not user is identical to what i released, but the math is correct regardless):

8 subdivisions = 64 SPP.
(64 SPP * (4*4) (min AA squared) ) * 1.334 GSM * 0.75 (as adaptivity is 0.25, so 75% of the rays are cast regardless.) = 1024 SPP (and change).
Should the adaptive routines think more rays are needed, at the min AA level of 4 you’d get 1366 SPP.

Same applies for the Max AA, only in the forumla above 4*4 becomes 6*6, which leads to 2304 to 3073 SPP.

while this quote comes form here, the last of a set of three posts which may be helpful in understanding the reasons for the suggestion, along with the terminology (or lingo, as some call it) used:
http://forums.chaosgroup.com/showthread.php?79184-V-Ray-Scene-Optimisation-Script&p=628034#post628034

So here comes the, by now obvious, I hope, conclusion: in any type of scene setup you will ever face, if speed is a concern, you will want to use the camera rays (AA rays, if you please) as sparingly as you can possibly afford.
My overarching suggestion (and the script aids in PRECISELY this department) is this: FIRST set up the AA so that your geometric edges and high frequency textures are resolved cleanly (if there is motion blur or depth of field at play, it makes no conceptual difference, you will just have to use more camera rays to get those effects clean) with the LEAST amount of camera rays possible, THEN increase the specialised rays so that your shading effects look clean under those anti-aliasing conditions.