Adding and initializing add factors
Posted: Tue Nov 30, 2010 12:53 am
Hi,
I want to add add-factors to a model object. I am using the following code:\
eq_{%0}_{%2}.makemodel(model{%0})
model{%0}.addassign(v) {%0}
model{%0}.addinit(v=n, s=b) {%0}
model{%0}.solveopt(s=d, d=d, a=t )
model{%0}.scenario(a) "Scenario 1"
model{%0}.scenario scenario 1
model{%0}.override {%1}
model{%0}.scenario baseline
solve model{%0}
where the %0 and %1 are arguments passed to the program in which this code is nested.
When calling the program, the add factors are not assigned or initialized. Any suggestions?
I want to add add-factors to a model object. I am using the following code:\
eq_{%0}_{%2}.makemodel(model{%0})
model{%0}.addassign(v) {%0}
model{%0}.addinit(v=n, s=b) {%0}
model{%0}.solveopt(s=d, d=d, a=t )
model{%0}.scenario(a) "Scenario 1"
model{%0}.scenario scenario 1
model{%0}.override {%1}
model{%0}.scenario baseline
solve model{%0}
where the %0 and %1 are arguments passed to the program in which this code is nested.
When calling the program, the add factors are not assigned or initialized. Any suggestions?