Напишите промт, могу в Gemini Pro отправить.
1. Write a C++ function implementing the sequential quadratic programming (SQP) optimization algorithm. The function must have the following parameters: objective function, gradient, starting point, parameter constraints, boundary constraints, and stopping conditions. Use only standard library (stl). Print example.
2. Write a C++ function implementing the trust region reflection (TRR) optimization algorithm. The function must have the following parameters: objective function, gradient, Hessian, starting point, parameter constraints, boundary constraints, and stopping conditions. Use only standard library (stl). Print example.
3. Write a C++ function implementing the sequential quadratic programming (SQP) optimization algorithm. The function must have the following parameters: objective function, gradient, starting point, parameter constraints, boundary constraints, and stopping conditions. Print example.
4. Write a C++ function implementing the trust region reflection (TRR) optimization algorithm. The function must have the following parameters: objective function, gradient, Hessian, starting point, parameter constraints, boundary constraints, and stopping conditions. Print example.
1 почти похоже на 3, а 2 почти похоже на 4
Попробовал напечатать команды 1 и 2 в бесплатных чатах, посмотрю, что они там написали. Если есть возможность, наберите, пожалуйста, команды 1, 2, 3, 4 в платном чате.