Design of a general complex problem-solving architecture based on task management and predictive optimization. (June 2022)