Local-APMonitor-Online?

50 views
Skip to first unread message

maurizio nardò

unread,
Nov 24, 2018, 12:19:09 PM11/24/18
to apmonitor
Thank you for your local server APM, I installed it on windows and tested the Python interface with no experience at all of Apache and php.
It looks awesome, and very useful for poor internet connections like mine.

But I'd be even more enthusiast if it was replicated, on the local server, the online interface also.
Definitively it would be the best way to develop models and run them locally, and then move to the APM server only verifcated results.
I don't know if this is feasible or even unpolite to ask for. In any case, thx a lot.

John Hedengren

unread,
Nov 25, 2018, 2:04:26 AM11/25/18
to apmo...@googlegroups.com

Dear Maurizio,

 

If you are using Python, I recommend that you switch over to the GEKKO Optimization Suite. The local web-interface such as http://apmonitor.com/online/view_pass.php isn’t available, unfortunately. With GEKKO, you can run in local mode for Windows and Linux in Python. Here are some tutorials: https://apmonitor.com/wiki/index.php/Main/GekkoPythonOptimization  such as this problem to solve nonlinear equations:

 

from gekko import GEKKO

m = GEKKO()             # create GEKKO model

x = m.Var(value=0)      # define new variable, initial value=0

y = m.Var(value=1)      # define new variable, initial value=1

m.Equations([x + 2*y==0, x**2+y**2==1]) # equations

m.solve(disp=False)     # solve

print([x.value[0],y.value[0]]) # print solution

 

You can either run locally by setting

 

m = GEKKO(remote=False)  # preferred method to run locally

 

or else:

 

m = GEKKO(server=’http://127.0.0.1’)

 

or some other local IP address if you’d like to use the APMonitor server. If you use the first option, you don’t need to install the Apache server with PHP scripts. The local executable comes with the pip install for Windows and Linux.

 

Best regards,

 

John Hedengren

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To post to this group, send email to apmo...@googlegroups.com.
Visit this group at https://groups.google.com/group/apmonitor.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages