matrix error the objective variable has vanished from the model

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!
jednoduche_DEA.gms (3.45 KB)

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

Thank you! I didn’t notice this is happening

Hi
I have this problem in my functional program.
please guide me.
please help me
code.docx (33.3 KB)

Hi
I have this problem in my functional program.
Please guide me.
Scincerely kamal
code.docx (33.3 KB)
code.docx (33.3 KB)

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

Hi
How can I post?
Please guide me
Sincerely kamal

Hi
How can I post?
Please guide me
Sincerely kamal

There is a button “new topic” in every board (“syntax”, “solvers”, etc.) .
Cheers
Renger