Help me in CES, CET estimate, please

Solver related questions
Nguyen Xuan
User
User
Posts: 7
Joined: 2 months ago

Help me in CES, CET estimate, please

Post by Nguyen Xuan » 2 months ago

123
Last edited by Nguyen Xuan 2 months ago, edited 1 time in total.

User avatar
Renger
Posts: 395
Joined: 3 years ago

Re: Help me in CES, CET estimate, please

Post by Renger » 2 months ago

Hi
It is hard to help you with your question as you don't post any code. Please read the rules of the forum.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Nguyen Xuan
User
User
Posts: 7
Joined: 2 months ago

Re: Help me in CES, CET estimate, please

Post by Nguyen Xuan » 2 months ago

12
Last edited by Nguyen Xuan 1 month ago, edited 2 times in total.

User avatar
Renger
Posts: 395
Joined: 3 years ago

Re: Help me in CES, CET estimate, please

Post by Renger » 2 months ago

Hi
Your code is not complete, so it doesn't produce your problem.
Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Nguyen Xuan
User
User
Posts: 7
Joined: 2 months ago

Re: Help me in CES, CET estimate, please

Post by Nguyen Xuan » 2 months ago

What does it mean? What produces my ploblems?
The whole file is very large so I can't upload it, I have to remove the data and put it in the code. Can you explain to me why my results are corrupted? Thank you

User avatar
Renger
Posts: 395
Joined: 3 years ago

Re: Help me in CES, CET estimate, please

Post by Renger » 2 months ago

You can attach a file...and it is hard to check what is going wrong without a running model. Perhaps there are problems with your data, what you do with your data, mistakes in your equations, infeasible problems, ...
You can't expect from people that they go through your code of 1134 lines line-by-line.

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Nguyen Xuan
User
User
Posts: 7
Joined: 2 months ago

Re: Help me in CES, CET estimate, please

Post by Nguyen Xuan » 2 months ago

Hi
I attached file. Check file, please. Thanks you very much!
Cheers,
Nguyên Xuân.
Last edited by Nguyen Xuan 2 months ago, edited 1 time in total.

User avatar
dirkse
Moderator
Moderator
Posts: 84
Joined: 3 years ago
Location: Fairfax, VA

Re: Help me in CES, CET estimate, please

Post by dirkse » 2 months ago

Hello,

CONOPT has hit the iteration limit you set, so it stopped. Always look at the SOLVER STATUS and the MODEL STATUS before looking at the variable values. You could also use some GAMS code to print a message or abort if the solver didn't find a solution. This is sometimes better than continuing on.

**** SOLVER STATUS 2 ITERATION INTERRUPT
**** MODEL STATUS 6 INTERMEDIATE INFEASIBLE
**** OBJECTIVE VALUE 1191.9553

RESOURCE USAGE, LIMIT 1533.254 20000.000
ITERATION COUNT, LIMIT 20000 20000
EVALUATION ERRORS 0 0


Why do you set iterlim = 20000 ??

-Steve

Nguyen Xuan
User
User
Posts: 7
Joined: 2 months ago

Re: Help me in CES, CET estimate, please

Post by Nguyen Xuan » 2 months ago

1
Last edited by Nguyen Xuan 1 month ago, edited 3 times in total.

User avatar
Renger
Posts: 395
Joined: 3 years ago

Re: Help me in CES, CET estimate, please

Post by Renger » 2 months ago

Hi

A few remarks on your model (using pathnlp as solver):
  • Your data seems to be not scaled very well. Your national account values go up to 1E8. You have many equality-equations where you force, for example, demand to be equal to supply. If the level of your values is around 1E8, equality is only reached if the difference is very small (e.g. 1E-7). Example, if you have all your values in dollars, this would mean that your precision to be met is 1E-7$. You might try to scale your values around 1.
  • Your starting values are often far away from your lower and upper bounds (often they are not within their bounds). As you use national account data, it should be possibility to initialize your data properly, e.g. such that the initial value is very close to the actual value.
Hope this helps

Cheers
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist

Post Reply