--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/53b2d5c2-d496-41d7-a035-15cffa6e5626%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If gekko don't accept the variable to be more than a single value I will have the arror again I guess, as my variables are arrays too.
Should i change the variable too as np.array?
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/86e56072-1b93-4bd1-8c76-e55fa400f571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thanks a lot for the helpfull responce
I have changed the
parameters as u say and it worked but an other error had pop up unfortunately
showen in the pic
will u plz givee me any recomendation
the code after changes HERE
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/7f86a27c-40ec-4fa4-b35d-e69d78dbfc20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
I apologize for the delay. My messages are sometimes flagged as spam when I include links and it needed to be approved by the moderation system. I hope that message helps with debugging.
-John Hedengren
I apologize for the delay. My messages are sometimes flagged as spam when I include links and it needed to be approved by the moderation system. I hope that message helps with debugging.
-John Hedengren
From: apmo...@googlegroups.com <apmo...@googlegroups.com> on behalf of براءة احمد <bara2a...@gmail.com>
Sent: Tuesday, June 18, 2019 10:08 AM
To: apmonitor
Subject: Re: [APM] Re: Exception: This steady-state IMODE only allows scalar values.
Dr John
Pls help me find the solution of the error mentioned previously.
Bara'a Ahmad.
Industrial Engineer.
Engineer at Ministry of Energy and Miniral Resources.
Amman, Jordan
Zip code 11623.
+962791410153.
On Mon, 17 Jun 2019, 15:04 براءة احمد, <bara2a...@gmail.com> wrote:
thanks a lot for the helpfull responceI have changed theparameters as u say and it worked but an other error had pop up unfortunately
showen in the picwill u plz givee me any recomendationthe code after changes HERE
بتاريخ السبت، 15 يونيو، 2019 9:08:10 م UTC+3، كتب براءة احمد:--( I am trying to solve the following project (find in the link HEREIt throw the error in the picture
what is wrong ? how should I solve it?
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmo...@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 apmo...@googlegroups.com.
To post to this group, send email to apmo...@googlegroups.com.
Visit this group at https://groups.google.com/group/apmonitor.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/7f86a27c-40ec-4fa4-b35d-e69d78dbfc20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmo...@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 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/a1255b22-7cbe-4433-a625-e663e7df51a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/CAGNFaLEo1VBg4r1anBLXrCL6KheafOqZ43U8cOaPnnXxKi3%3D3Q%40mail.gmail.com.
Dear Bara'a,
Below is an example of naming a variable:
from gekko import GEKKO
m = GEKKO() # create GEKKO model
x = m.Var(name='x') # define new variable, default=0
y = m.Var() # define new variable, default=0
m.Equations([3*x+2*y==1, x+2*y==0]) # equations
m.solve(disp=True) # solve
m.open_folder()
print(x.value,y.value) # print solution
When the folder opens, I also open the .apm file to show that the model file uses the name ‘x’ for one of the variables and ‘v2’ for the other variable. It is ‘v2’ because I don’t assign a name.
Model
Variables
x = 0
v2 = 0
End Variables
Equations
(((3)*(x))+((2)*(v2)))=1
(x+((2)*(v2)))=0
End Equations
End Model
If you are still running into a problem, I recommend that you check the property name or anything else that may be a syntax issue. For better support on issues that you encounter, please include a simple and complete example (such as the one above) that demonstrates the issue that you are trying to solve. These simple examples help me with debugging my own applications as well.
Best regards,
John Hedengren
showen in the pic
will u plz givee me any recomendation
the code after changes HERE
بتاريخ السبت، 15 يونيو، 2019 9:08:10 م UTC+3، كتب براءة احمد:
( I am trying to solve the following project (find in the link HERE
It throw the error in the picture
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/CAAF5VUNfsNrPFHdAAHT9uHVkxuwBsxMKP4MEdDdJNZtAGh98Jw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/f767c611940845f8861241dad2c36f4b%40MB10.byu.local.
For more options, visit https://groups.google.com/d/optout.
Bara’a Al-Suradi
Amman,Jordan.
| . |
Wherever Allah puts you, you should succeed. |
Some of your values that you are using as an input are strings (type:<U32). Here is example code that shows what the <U32 type looks like when you print it: