Export optimisation statistics
Hi All,
After trawling through the POSTFEKO API and not finding what I need, I figured I'd reach out and see if anyone else knows if its possible.
For a project I'm working on, I need to be able to extract the global goal function value of an optimisation iteration.
Its trivial to display the data in a 2D plot within the program and extract it visually however I need to be able to automate the process with a lua script.
Kind Regards,
Christopher Prause
Answers
-
It seems the API does not have this function, yes.
See the bottom of the .pfg file created during optimisation. You could just parse this file.
In the below example analysis number 11 with goal 1.024278 was the optimum.
(This is also printed out at the end of the optimisation, and after each iteration in the screen output.)
<valueSeries autoLegend='0' label='global goal' legend='global goal' lineColour='6' markerColour='0' markerSymbol='-1' unwrap='0' lineWeight='1' smithMode='0' leftOffset='0' bottomFactor='1' dataScale='0' smithChartOffset='0' lineStyle='0' isdB='0' dbFactor='10' markerSkip='0' bottomOffset='0' independentVar='9' leftFactor='1' visible='1'> <coord0>1.000000000000E+00 2.660984357729E+00</coord0> <coord1>2.000000000000E+00 5.576534763817E+00</coord1> <coord2>3.000000000000E+00 7.111736604099E+00</coord2> <coord3>4.000000000000E+00 3.930480833089E+00</coord3> <coord4>5.000000000000E+00 5.432063754701E+00</coord4> <coord5>6.000000000000E+00 4.588627015879E+00</coord5> <coord6>7.000000000000E+00 6.504855382087E+00</coord6> <coord7>8.000000000000E+00 6.810322213765E+00</coord7> <coord8>9.000000000000E+00 1.334521460692E+00</coord8> <coord9>1.000000000000E+01 4.004993085123E+00</coord9> <coord10>1.100000000000E+01 2.134784482058E+00</coord10> <coord11>1.200000000000E+01 1.024278584819E+00</coord11> <coord12>1.300000000000E+01 3.037102051344E+00</coord12> <coord13>1.400000000000E+01 4.972591349106E+00</coord13> <coord14>1.500000000000E+01 1.639715252672E+00</coord14> <coord15>1.600000000000E+01 2.643155741597E+00</coord15> <coord16>1.700000000000E+01 1.518139618721E+00</coord16> <coord17>1.800000000000E+01 1.737249594941E+00</coord17> <coord18>1.900000000000E+01 1.312758545407E+00</coord18> <coord19>2.000000000000E+01 1.183687323123E+00</coord19> <coord20>2.100000000000E+01 1.283535425539E+00</coord20> <coord21>2.200000000000E+01 1.182512813433E+00</coord21> <coord22>2.300000000000E+01 1.251935038082E+00</coord22> <coord23>2.400000000000E+01 1.181573426912E+00</coord23> </valueSeries>
0 -
Awesome, you're a legend Mel. Thanks!
0