Download Contents
Transcript
90 2.3.7 CHAPTER 2. SOLVER RELATED QUESTIONS CONOPT: Default accuracy Answer from jean.mercenier@umontreal.ca: Hi folks: this message is primarily addressed to economists using GAMS/CONOPT to solve equilibrium (i.e. square) models. I was mentioning to Arne Drud some concerns on the accuracy of CONOPT when using default parameters; it turns out that for the class of problems we are dealing with, the default parameters are indeed unsatisfactory, and have to be changed (which is trivial to do). Following are: (a) Arne Drud’s reply (and fix) to (b) my question with comments. (b) is not interesting except to convince that the problem is to be taken seriously... Jean Mercenier (a) Arne Drud’s reply 4. Accuracy: For square sets of equations there is sometimes a problem. CONOPT uses two sets of feasibility tolerances: The errors must be less than Rtnwma which by default is as high as 1.e-3, AND the errors times their dual variables must be less than some objective tolerance that usually is very small. However, for square systems of equations solved as NLPs, the duals are often zero so the last check, that is supposed to be the binding one, drops out, and the tolerance is Rtnwma. You can set a lower tolerance with "Set Rtnwma 1.e-8" in an options file. (b) My initial question/concern: I forgot to mention another problem I have encountered with CONOPT: it’s relative lack of accuracy (w.r. to Minos which is my benchmark! I use the default accuracy parameter with both solvers: could it be that there is a difference there? or is it due to the type of algo, in which case I would suggest incresing that default parameter). Let me be slightly more specific (I do not have the example unfortunately): I was solving a Hamiltonian system of difference equations (from a discounted optimal growth problem). I know (from theory) the type of smooth time-path I should obtain (more specifically: an initial jump of optimal investment/co-state variable on impact, and then a smooth monotonous decline to initial steady state level); using Minos I do obtain exactly what I expected, with Conopt I had a sort of "blip" early on the time horizon which is not quantitatively very significant but is nevertheless embarassing (in cases for which theory does not give me a clear answer, how am I to have faith in the solution computed by Conopt?) I have observed other cases (always discounted intertemp. optim. problems, because in that case I have a good intuition of the time paths) where, CONOPT gives a solution with an unexpected "blip" occuring in the middle of the time horizon, while MINOS declares "infeasible problem"; it turned out that increasing the length of the time horizon (at which a finite horizon approx of the infinite horizon transversality conditions is imposed) unabled me to solve the problem with Minos, and the "blip" to disappear with Conopt. I concluded that Conopt, for one reason or another, is less accurate than Minos when using the default options, and I have since then been slightly less confident with Conopt (When I do not encounter "the scaling problems" I mentioned previously, I