SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.13104 · 2022

A Neural Network Approach for Stochastic Optimal Control

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 8 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
emorymlip/neuralsoc canonical 2 of 5
emorymlip/fbsnns extension 1 of 3
FunctionStatusWhere it lives
antiderivTanh Ran emorymlip/neuralsoc/networks.py
code served (permissive licence) · get_code("9145a617a5d6aa3a")
derivTanh Ran emorymlip/neuralsoc/Phi_OTflow.py
code served (permissive licence) · get_code("91ae98c615b90e86")
g Ran emorymlip/fbsnns/HamiltonJacobiBellman100D.py
code served (permissive licence) · get_code("d25c6435028dd30c")
control_obj Not yet run emorymlip/neuralsoc/loss.py
code served (permissive licence) · get_code("0877e4d1c6f97cd1")
get_Phi Not yet run emorymlip/fbsnns/HamiltonJacobiBellman100D.py
code served (permissive licence) · get_code("8a9dca26f4cef296")
hjb_penalty Not yet run emorymlip/neuralsoc/loss.py
code served (permissive licence) · get_code("db0e52aa51f96bd4")
terminal_penalty Not yet run emorymlip/neuralsoc/loss.py
code served (permissive licence) · get_code("6e1d3a4c50da9847")
u_exact Not yet run emorymlip/fbsnns/HamiltonJacobiBellman100D.py
code served (permissive licence) · get_code("ce4b7a20ab44ad6c")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present a neural network approach for approximating the value function of high-dimensional stochastic control problems. Our training process simultaneously updates our value function estimate and identifies the part of the state space likely to be visited by optimal trajectories. Our approach leverages insights from optimal control theory and the fundamental relation between semi-linear parabolic partial differential equations and forward-backward stochastic differential equations. To focus the sampling on relevant states during neural network training, we use the stochastic Pontryagin maximum principle (PMP) to obtain the optimal controls for the current value function estimate. By design, our approach coincides with the method of characteristics for the non-viscous Hamilton-Jacobi-Bellman equation arising in deterministic control problems. Our training loss consists of a weighted sum of the objective functional of the control problem and penalty terms that enforce the HJB equations along the sampled trajectories. Importantly, training is unsupervised in that it does not require solutions of the control problem. Our numerical experiments highlight our scheme's ability to identify the relevant parts of the state space and produce meaningful value estimates. Using a two-dimensional model problem, we demonstrate the importance of the stochastic PMP to inform the sampling and compare to a finite element approach. With a nonlinear control affine quadcopter example, we illustrate that our approach can handle complicated dynamics. For a 100-dimensional benchmark problem, we demonstrate that our approach improves accuracy and time-to-solution and, via a modification, we show the wider applicability of our scheme.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2209.13104")
get_code_for_paper("2209.13104")
have("2209.13104")

Connect an agent — have() is free.