Crops data points from an output structure
This function crops data points from an OptionsMatlab output structure. The output structure can contain data points in a field OBJTRC (and CONSTRC) or RSMTRC.
The points to be cropped are specified by a vector of indices for points in the vector of objective function evaluations. The edited structure is returned as an output argument.
STRUCTOUTEDIT = optimisationCropDataPoints(STRUCTOUT, POINTS)
STRUCTOUTEDIT = optimisationCropDataPoints(STRUCTOUT, POINTS) where STRUCTOUT is the results structure returned by OptionsMatlab containing data points in a field OBJTRC (and CONSTRC) or RSMTRC. POINTS is a vector of indices to data points in STRUCTOUT.OBJTRC.OBJFUN (or STRUCTOUT.RSMTRC.OBJFUN).
STRUCTOUTEDIT is a copy of STRUCTOUT with the specified points cropped.
In this example the first, fifth and tenth points are cropped from an output structure containing ten points:
structin = createBeamStruct(2.8);
structin.NITERS = 10; %Do a DoE of ten points
structout = OptionsMatlab(structin);
structoutedit = optimisationCropDataPoints(structout, [1,5,10]);
structoutedit.OBJTRC
structoutedit.CONSTRC
ans =
OBJFUN: [4.1998e+003 2.5211e+003 2.3857e+003 3.2492e+003 7.9283e+003 708.6411 1.7318e+003]
VARS: [2x7 double]
NCALLS: 7
ans =
CONS: [5x7 double]
VARS: [2x7 double]
LCONS: [5x7 double]
UCONS: [5x7 double]
NCALLS: 7
optimisationAppendDataPoints, optimisationReplaceDataPoints
Copyright © 2007, The Geodise Project, University of Southampton