First of all, thank you so much for this tool, is amazing. As I mentioned in a previous topic, I developed a PCE model and the results are very good. I saved the model using save(filename, myPCE) and ended my MatLab session.
Now I open again MatLab and loaded the mat file. I am able to evaluate the model (i.e., uq_evalModel(myPCE, X)) but when I try to perform a sensitivity analysis, the model is not recognized (e.g., uq_createAnalysis(SobolSensOpts);).
I tried with uq_selectModel(myPCE) or uq_getModel(myPCE) but both of them print an error.
Do you know how can I load my PCE model? I don’t want to run the analysis again.
...
SobolSensOpts.Model = myPCE; % load from your saved PCE
SobolSensOpts.Input = myPCE.Internal.Input;
...
The second line is actually not necessary for computing the indices from PCE coefficients because all the information required is contained in myPCE, but calling uq_createAnalysis for Sobol’ sensitivity analysis somehow requires an INPUT object to be defined. We’ll check if this is really necessary in this case, but I think the above should work for your case.