Closed leavor closed 3 years ago
Gekko supports many Numpy functions but doesn't support others such as fact
. I recommend either rewriting with Gekko functions or else use a solver such as scipy.optimize.minimize()
. Here are a couple tutorials that may help: https://apmonitor.com/che263/index.php/Main/PythonOptimization
Problem
Use GEKKO to solve nonlinear equations, the equations are as follows, alpha, beta, p1, p2 are known, find the unknowns n and c, where n and c are non-negative integers, n≥2, 1≤c≤n, The goal is to minimize the sum of squared errors of the equation A detailed introduction to the system of equations
thanks very much for your help!
Traceback
Code