Public R&D Expenditure Framework and Dynamics of Technology Enhancement: Based on the Agent-Based Simulation