Object Value NA problem

Problems with modeling
Post Reply
cagi
User
User
Posts: 1
Joined: 3 years ago

Object Value NA problem

Post by cagi »

We did some modelling as you can see on pictures. Our model did not show us any error but our objective value came NA and our z value 0 . Another problem is we can't see ''display,solver" parts of output. I add our mathmetical model and GAMS code.
WhatsApp Image 2020-06-06 at 16.03.39.jpeg
WhatsApp Image 2020-06-06 at 16.03.40.jpeg
WhatsApp Image 2020-06-06 at 16.05.05 (1).jpeg
User avatar
Renger
Posts: 639
Joined: 7 years ago

Re: Object Value NA problem

Post by Renger »

Hi

You have an objective where z (a Variable) is equal to another variable (cMax). But neither cMax or z is part of another equation.
In general, to solve an optimization problem you need an objective function that contains variables that appear in the constraints.
BTW: You better submit the code or attach files, so people can look into your question.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Post Reply