The Optimal R&D Policy: Patents, Public Funding, or Both? · Study