Page 1 of 2

Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 5:37 am
by Nguyen Xuan
123

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 7:17 am
by Renger
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

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 9:25 am
by Nguyen Xuan
12

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 1:16 pm
by Renger
Hi
Your code is not complete, so it doesn't produce your problem.
Cheers
Renger

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 1:27 pm
by Nguyen Xuan
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

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 2:18 pm
by Renger
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

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 2:27 pm
by Nguyen Xuan
Hi
I attached file. Check file, please. Thanks you very much!
Cheers,
Nguyên Xuân.

Re: Help me in CES, CET estimate, please

Posted: Thu Aug 08, 2019 3:57 pm
by dirkse
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

Re: Help me in CES, CET estimate, please

Posted: Fri Aug 09, 2019 1:21 am
by Nguyen Xuan
1

Re: Help me in CES, CET estimate, please

Posted: Fri Aug 09, 2019 7:19 am
by Renger
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