PCE_RBDO.m (3.4 KB)
RBDO.m (2.0 KB)
Hi, I build a PCE and conduct RBDO based on PCE. I use PCE for the probabilistic constraint. Above PCE_RBDO.m is the built PCE. RBDO.m is code for RBDO. Below is the error.
Could you please give some advice? Is there any example for data-driven surrogate (without explicit expression) for RBDO?
error when running RBDO:
Try to use SCRIPT PCE_RBDO as a function
error: uq_eval_uq_default_model (line 62)
[varargout{1:num_of_out_args}] = model_handle(X);
error: uq_evalModel (line 121)
[varargout{1:nargout}] = current_model.eval(current_model,varargin{:});
error: uq_evalPfMC (line 69)
M_X = uq_evalModel( Options.Constraints.Model,Cq ) ;
error: uq_runReliability (line 52)
LocalAnalysis.Results = uq_evalPfMC(d, current_analysis) ;
error: uq_twolevel_evalConstraints (line 6)
myLocalAnalysis = uq_runReliability (d, current_analysis ) ;
error: uq_cmaesnonlconwrapper (line 7)
hc = uq_twolevel_evalConstraints( d, current_analysis ) ;
error: uq_runRBDOptimizer>@(X)uq_cmaesnonlconwrapper(X,current_analysis) (line 140)
nonlcon = @(X)uq_cmaesnonlconwrapper( X, current_analysis ) ;
error: uq_runRBDOptimizer>@(x)nonlcon(x) (line 147)
[Xstar,Fstar,exitflag,output] =
uq_c1p1cmaes(@(x)fun(x),x0,sigma0,lb,ub,@(x)nonlcon(x),optim_options) ;
error: uq_c1p1cmaes>@(x)nonlcon(x’) (line 202)
nonlconfcn = @(x) nonlcon(x’);
error: uq_c1p1cmaes (line 336)
g = nonlconfcn(x_current);
error: uq_runRBDOptimizer (line 147)
[Xstar,Fstar,exitflag,output] =
uq_c1p1cmaes(@(x)fun(x),x0,sigma0,lb,ub,@(x)nonlcon(x),optim_options) ;
error: uq_rbdo (line 52)
results = uq_runRBDOptimizer(current_analysis) ;
error: uq_analysis/run (line 84)
this.Results = eval([this.Type ‘(this)’]);
error: uq_runAnalysis (line 29)
[varargout{1:nargout}] = current_analysis.run(current_analysis, varargin{:});
error: uq_initialize_uq_rbdo (line 1675)
uq_runAnalysis(current_analysis);
error: uq_core_module/run_initialization_script (line 208)
initHandle(obj);
error: uq_core_analysis/add_module (line 96)
success = this.run_initialization_script(obj);
error: uq_createAnalysis (line 83)
eval(str);
error: RBDO (line 44)
myRBDO_MCC = uq_createAnalysis(MCCOpts);