reverse "model.append"
Posted: Tue Sep 08, 2009 4:34 am
hi,
is it possible to change the text in a model, in the way to delete one line ":eq_x" and replace with ":eq_x_alt" or just text "x=1+2*z".
I don't want to exclude variable x, but replace the definition of it.
I think on revers model.append (havn't found it in the manual)
or s.th. like @replace(model.text,":eq_x",":eq_x_alt") but it doesn't work :(
in my programm, i can solve a model with various szenarios (user decision at the beginning) and tables for comparision basline/szenario_x or szenario_x/szenario_y are generated.
Now i want to change a parameter in a equation.
I see, i can make an add-factor on the parameter, but is there a better possibility.
Thanks for help in advance.
Jens
is it possible to change the text in a model, in the way to delete one line ":eq_x" and replace with ":eq_x_alt" or just text "x=1+2*z".
I don't want to exclude variable x, but replace the definition of it.
I think on revers model.append (havn't found it in the manual)
or s.th. like @replace(model.text,":eq_x",":eq_x_alt") but it doesn't work :(
in my programm, i can solve a model with various szenarios (user decision at the beginning) and tables for comparision basline/szenario_x or szenario_x/szenario_y are generated.
Now i want to change a parameter in a equation.
I see, i can make an add-factor on the parameter, but is there a better possibility.
Thanks for help in advance.
Jens