hy,

this is my first attempt to model an electricity auction market with

GAMS.

it’s complete so far, but at the end i’m dealing with the problem that

i want to maximize the profit-function for every single supplier. it

looks like this “profit(supp)” and i got the error message “dimension

different”. the GAMS user guide told me that the objective function

has to be free in sign AND of domains… which i did no know when i

started to write the model.

is there any simple way like a loop to optimize one hundred profit

functions?

or do i have to write the equations, the solve statement and the

output statements a hundres times?

thanks a lot

steven

\

Dear Steven,

a while ago I had a similar case, where I wanted to loop my program a

few times.

The answer from Michael in this post helped me a great deal:

http://groups.google.de/group/gamsworld/browse_thread/thread/209463fb7be1166c/

Also the following answer is also a good alternative method using

loops directly, though I preferred the first one since I can control

the values there.

Kind Regards

Christian

On 15 Sep., 11:29, eve&rave MÃ¼nster e.V. wrote:

hy,

this is my first attempt to model an electricity auction market with

GAMS.

it’s complete so far, but at the end i’m dealing with the problem that

i want to maximize the profit-function for every single supplier. it

looks like this “profit(supp)” and i got the error message “dimension

different”. the GAMS user guide told me that the objective function

has to be free in sign AND of domains… which i did no know when i

started to write the model.

is there any simple way like a loop to optimize one hundred profit

functions?

or do i have to write the equations, the solve statement and the

output statements a hundres times?

thanks a lot

steven

\