Search trace history for values at optimum VARS
This function searches the optimisation trace history(ies) in OBJTRC (and CONSTRC) or RSMTRC fields of an OptionsMatlab output structure for the values of the objective and constraint functions at the optimum vector in the VARS field. The function will only operate on structures for which the values of OBJFUN and/or CONS are zero. This function is intended for use when a search has been performed at OLEVEL<2 and the values at the optimum point have not been returned.
The edited structure is returned as an output argument.
STRUCTOUTEDIT = optimisationSearchTrace(STRUCTOUT)
STRUCTOUTEDIT = optimisationSearchTrace(STRUCTOUT) where STRUCTOUT is the results structure returned by OptionsMatlab containing data points in a field OBJTRC (and CONSTRC) or RSMTRC.
This example demonstrates how the values of the objectives and constraints are retrieved from the trace history when the search has been performed at OLEVEL=0:
structin = createBeamStruct(2.8);
structin.OLEVEL = 0; %Validation call not made
structin.NITERS = 10; %Do a DoE of ten points
structout = OptionsMatlab(structin)
structout.OBJFUN
structout.CONS
structout =
VARS: [2x1 double]
OBJFUN: 0
CONS: [5x1 double]
OBJTRC: [1x1 struct]
CONSTRC: [1x1 struct]
ans =
0
ans =
0
0
0
0
0
This searches the problem at OLEVEL=0 and consequently the values of the objective and constraints at structout.VARS are returned as zeros in structout.OBJFUN and structout.CONS. The values of the objective and constraints at the optimum point are assigned to these variables by searching the trace history:
structout2 = optimisationSearchTrace(structout)
structout2.OBJFUN
structout2.CONS
structout2 =
VARS: [2x1 double]
OBJFUN: 5.0853e+003
CONS: [5x1 double]
OBJTRC: [1x1 struct]
CONSTRC: [1x1 struct]
ans =
5.0853e+003
ans =
1.0e+005 *
0.0004
0.0000
0.0000
0.0001
5.4913
OptionsMatlab
Copyright © 2007, The Geodise Project, University of Southampton