Within this loop, another sub-routine is called, and the value of ITRMCD may be changed however, the only way to break out of this loop is if ITRMCD takes on a non-zero value, which I have highlighted in purple. There is the label at 100, and the unconditional GO TO 100 statement. Inside OPTDRD, I have highlighted the start and end points of the main loop in red. OPTDRD does the bulk of the work of computing the optimization. UNCMND passes INFO into sub-routine OPTDRD, where it is referenced as the variable ITRMCD. It can (supposedly) return a value of 0 to indicate an optimal solution. The main routine, UNCMND, uses the integer variable INFO as an error code to indicate the quality of the result. I have attached two PDF documents of the code for the sub-routines (UNCMND and OPTDRD) relevant to my question. I believe the most up-to-date, complete, version of the source code is posted on the GAMS website: I am trying to translate the code for UNCMND, which does multi-dimensional optimization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |