objective function

Sep 9, 2014 at 8:49 PM

is there any way to have access to the values of the eclipse objective function (for the optimization) for v13 using the scripting api?

Sep 9, 2014 at 10:17 PM
See PlanSetup.OptimizationSetup for access to optimization objectives and parameters.
Sep 9, 2014 at 10:47 PM
But does that only give you the optimization inputs (parameters that were inputted in the optimization window)? What about which objective function (whether least squares or other types) was used or the objective value as a function of iteration during the optimization?
Sep 9, 2014 at 10:58 PM
Correct, that gives you the inputs.

Value (cost) can be retrieved from OptimizerResult.TotalObjectiveFunctionValue, which is only given back to you as the result of calling ExternalPlanSetup.Optimize (with research mode scripting enabled).

I presume the question here is that you would like to get the cost directly from the PlanSetup (without calling Optimize)?
Sep 11, 2014 at 7:10 PM
So there's no way for me to know what the exact objective function that was used, i.e. whether it was in the form of min sum(D-Dp)^2 or min abs(D-Dp) or what the exact formulation was.

Sorry if I'm reiterating myself.

Thanks so much.