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


Coordinator
Sep 9, 2014 at 9:17 PM

See PlanSetup.OptimizationSetup for access to optimization objectives and parameters.



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?


Coordinator
Sep 9, 2014 at 9: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)?



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(DDp)^2 or min abs(DDp) or what the exact formulation was.
Sorry if I'm reiterating myself.
Thanks so much.

