matrix error the objective variable has vanished from the model

Problems with syntax of GAMS
Post Reply
Jjana3
User
User
Posts: 2
Joined: 4 years ago

matrix error the objective variable has vanished from the model

Post by Jjana3 »

Hi,

I have had a (somewhat) functional program and just by small adjustments (decreasing the amount of inputs) I started getting exit code = 3. The only comment that comes with it is "matrix error the objective variable has vanished from the model". I can't find anything about what it could be caused by. Do you have thoughts on that? Could you share them, please?

I am attaching my code just in case it could help finding out whats wrong. It is a simple DEA model using expected return and cvar. Thanks for any help!
Attachments
jednoduche_DEA.gms
(3.45 KiB) Downloaded 311 times
Fred
Posts: 373
Joined: 7 years ago

Re: matrix error the objective variable has vanished from the model

Post by Fred »

Hi,

Your objective variable theta occurs only once with coefficient pcvar=0. Hence, theta disappears with the current value of pcvar, so GAMS does not know what to optimize. If GAMS would generate this model, the solver could make theta very very negative (model would be unbounded).

I hope this helps!

Fred
Jjana3
User
User
Posts: 2
Joined: 4 years ago

Re: matrix error the objective variable has vanished from the model

Post by Jjana3 »

Thank you! I didn't notice this is happening
kamal
User
User
Posts: 6
Joined: 3 years ago

Re: matrix error the objective variable has vanished from the model

Post by kamal »

Hi
I have this problem in my functional program.
please guide me.
please help me
code.docx
(33.35 KiB) Downloaded 222 times
Kemal
kamal
User
User
Posts: 6
Joined: 3 years ago

Re: matrix error the objective variable has vanished from the model

Post by kamal »

Hi
I have this problem in my functional program.
Please guide me.
Scincerely kamal
code.docx
(33.35 KiB) Downloaded 224 times
code.docx
(33.35 KiB) Downloaded 224 times
Kemal
User avatar
dirkse
Moderator
Moderator
Posts: 215
Joined: 7 years ago
Location: Fairfax, VA

Re: matrix error the objective variable has vanished from the model

Post by dirkse »

Kamal,

You'll probably get a better response if you start a new thread instead of using an unrelated thread from a year ago.

-Steve
kamal
User
User
Posts: 6
Joined: 3 years ago

Re: matrix error the objective variable has vanished from the model

Post by kamal »

Hi
How can I post?
Please guide me
Sincerely kamal
Kemal
kamal
User
User
Posts: 6
Joined: 3 years ago

Re: matrix error the objective variable has vanished from the model

Post by kamal »

Hi
How can I post?
Please guide me
Sincerely kamal
Kemal
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: matrix error the objective variable has vanished from the model

Post by Renger »

There is a button "new topic" in every board ("syntax", "solvers", etc.) .
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply