We present a framework for modeling asset and portfolio dynamics, incorporating this information into portfolio optimization. For this framework, we introduce the Commonality Principle, providing a solution for the optimal selection of portfolio drivers as the common drivers. Portfolio constituent dynamics are modeled by Partial Differential Equations, and solutions approximated with neural networks. Sensitivities with respect to the common drivers are obtained via Automatic Adjoint Differentiat...