Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-11 Thread Pooja Bhalode
Hi Steven, Thank you so much for your help. It worked. That was the mistake I had. I had (i,j) instead of [i,j] Thanks again Pooja On Sat, Sep 10, 2016 at 12:23 PM, Pooja Bhalode wrote: > Hi everyone, > > I am sorry about the confusion earlier, > I am trying to run Pyomo environment in Pytho

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-10 Thread Alan Gauld via Tutor
On 10/09/16 17:23, Pooja Bhalode wrote: > I am trying to run Pyomo environment in Python on sublime text editor. OK, For the pyomo stuff you should ask on the pyomo support site (or I notice they do staxck overflow too) > Python version of 2.7.11. I am running the code in sublime itself. You ma

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-10 Thread Pooja Bhalode
Hi everyone, I am sorry about the confusion earlier, I am trying to run Pyomo environment in Python on sublime text editor. Python version of 2.7.11. I am running the code in sublime itself. The code is somewhat long, around 200 lines. I can add snippets of it though. Code: m.z = ContinuousSet(

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Alex Kleider
On 2016-09-09 18:13, Steven D'Aprano wrote: Please read this article first for how you can improve the chances of getting good answers to your questions: http://sscce.org/ In addition to the link Seven provides above, I've also found the following to be worth perusing: http://www.catb.org/es

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Steven D'Aprano
Hi Pooja, and welcome! On Fri, Sep 09, 2016 at 02:50:57PM -0400, Pooja Bhalode wrote: > Hi everyone, > > I was getting this error which read ' 'IndexedVar' object is not callable ' > for a variable type. > > The variable is defined as a class variable and has dimensions m.C(i,j) in > z and t ax

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Alex Kleider
On 2016-09-09 11:50, Pooja Bhalode wrote: Hi everyone, I was getting this error which read ' 'IndexedVar' object is not callable ' for a variable type. You haven't provided much information but it seems to me you are calling IndexedVar as though it were a function but it probably isn't a f

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Alan Gauld via Tutor
On 09/09/16 19:50, Pooja Bhalode wrote: > I was getting this error which read ' 'IndexedVar' object is not callable ' > for a variable type. Python error messages are very informative, but only if we can see them. Please post the entire error message not just a summary. > The variable is defined

[Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Pooja Bhalode
Hi everyone, I was getting this error which read ' 'IndexedVar' object is not callable ' for a variable type. The variable is defined as a class variable and has dimensions m.C(i,j) in z and t axis. The program isnt able to take in any of the equations that I am giving it to because of this erro