You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Whether there is a way to write the constrains and object function in a matrix way #2
Hi,is apmonitor support optimize a matrix?
For I need to optimize a matrix X , and I don't want to rewrite the constrains for each elements of X, whether there is a way to write the constrains and object function in a matrix way?
APMonitor does support matrix multiplication with the axb object but the parameters are constants. I'd recommend the GEKKO package (https://github.com/BYU-PRISM/GEKKO). It is available with pip install gekko. This package allows models to be built directly in Python. More information is available at http://gekko.readthedocs.io/en/latest/
APMonitor probably isn't the right solution if you need to solve an
optimization problem with complex numbers. The MATLAB solver fmincon may be
able to handle complex numbers:
https://www.mathworks.com/matlabcentral/answers/265883-fmincon-optimization-for-complex-vectors
There
may also be clever ways to divide variables into two parts and solve a
complex numbered system with real values only.
Activity
APMonitor commentedon Mar 27, 2018
APMonitor does support matrix multiplication with the axb object but the parameters are constants. I'd recommend the GEKKO package (https://github.com/BYU-PRISM/GEKKO). It is available with pip install gekko. This package allows models to be built directly in Python. More information is available at http://gekko.readthedocs.io/en/latest/
APMonitor commentedon Apr 16, 2018