Analytic Derivatives

Contents

Analytic Derivatives#

In order to use PCE efficiently with optimization through OpenMDAO, UQPCE provides analytical derivatives. This allows users to optimize a system under uncertainty while avoiding the expense penalty of using derivatives with the finite difference method. This section will explain how derivatives for UQPCE are calculated.

Implementation#

The uncertain variables are constant throughout the optimization process and are unaffected by changes in the design variables. The only UQPCE inputs affected by the design variables are the responses that each PCE model is build on. Because of this, we follow the partial derivatives throughout UQPCE with respect to the response vector, \(y\), to get the needed derivatives from UQPCE.

The derivative chain for the mean with respect to the responses is given by

(14)#\[ \frac{d \mu}{d y} = \frac{\partial \alpha}{\partial y} \cdot \frac{\partial \mu}{\partial \alpha} = ((X^T \cdot X)^{-1} \cdot X^T) \cdot [1, 0, ... , 0] \]

The derivative chain for the variance with respect to the responses is given by

(15)#\[ \frac{d \sigma^2}{d y} = \frac{\partial \alpha}{\partial y} \cdot \frac{\partial \sigma^2}{\partial \alpha} = ((X^T \cdot X)^{-1} \cdot X^T) \cdot (2 \alpha \langle \Psi^2 \rangle) \]

Additional derivatives for the confidence interval are given by the below equations

(16)#\[ \frac{\partial \alpha}{\partial y} = ((X^T \cdot X)^{-1} \cdot X^T) \]
(17)#\[ \frac{\partial y_{resamp}}{\partial \alpha} = X_{resamp} \]

More information on the derivatives for the confidence interval can be found here.