Hi Everyone,
Currently, I am trying to use PCE as a metamodelling (surrogate) model.
I have followed the steps suggested by @bsudret in PCE as a surrogate model for optimization solver.
After getting a metamodel as an uq_model, I can retrieve the coefficients of the PCE surrogate model.
I am looking for an explicit expression of the PCE surrogate so I followed @nluethen 's suggestion in Construct a PCE surrogate using a set of user defined experimental data. I used the MATLAB function polyval
to evaluate the function with the coefficients I get from the myPCE.PCE.Coefficients.
However, I failed to do so, and I think it is because UQLab automatically transforms the input (uniform distribution in this case) into standard uniform space. If this is correct, is there any function to transform it back to normal space? I tried the function uq_invNatafTransform, but the third input would cause an error since I only have one marginal (detail below).
E.g. For a polynomial function as the following,
y = -0.5X^3 + 12X^2 + 60X + 0
I am hoping to get a similar result like the figure below for interval X = [0 25], which is also the uniform input distribution.
(retrieved from Bailleul, W. (2018). Using polynomial chaos expansion for wind energy.)
Instead, I am getting like the following figure using OLS as the method to calculate the coefficients.
I will appreciate any help!
Best regards,
Jason