Optimization-Inspired Control Policies for Analytically and