/[ascend]/trunk/base/generic/solver/conopt.c
ViewVC logotype

Diff of /trunk/base/generic/solver/conopt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 916 by johnpye, Tue Oct 24 11:05:18 2006 UTC revision 917 by johnpye, Thu Nov 2 21:34:59 2006 UTC
# Line 210  int COI_CALL asc_conopt_message( int* SM Line 210  int COI_CALL asc_conopt_message( int* SM
210        j = LLEN[i];        j = LLEN[i];
211        for( l= 0; l<j; l++ ) line[l] = MSGV[k+l];        for( l= 0; l<j; l++ ) line[l] = MSGV[k+l];
212        line[j] = '\0';        line[j] = '\0';
213        (void)CONSOLE_DEBUG("%s", line);        CONSOLE_DEBUG("%s", line);
214        k += MSGLEN;        k += MSGLEN;
215     }     }
216  /*   k = 0;  /*   k = 0;
# Line 258  int COI_CALL asc_conopt_status(int* MODS Line 258  int COI_CALL asc_conopt_status(int* MODS
258          , int* ITER, double* OBJVAL, double* USRMEM          , int* ITER, double* OBJVAL, double* USRMEM
259  ){  ){
260  /* Standard Status routine. Write to all files */  /* Standard Status routine. Write to all files */
261      (void)CONSOLE_DEBUG("CONOPT has finished Optimizing");      CONSOLE_DEBUG("CONOPT has finished Optimizing");
262      (void)CONSOLE_DEBUG("Model status    = %8d", *MODSTA);      CONSOLE_DEBUG("Model status    = %8d", *MODSTA);
263      (void)CONSOLE_DEBUG("Solver status   = %8d", *SOLSTA);      CONSOLE_DEBUG("Solver status   = %8d", *SOLSTA);
264      (void)CONSOLE_DEBUG("Iteration count = %8d", *ITER);      CONSOLE_DEBUG("Iteration count = %8d", *ITER);
265      (void)CONSOLE_DEBUG("Objective value = %10f", *OBJVAL);      CONSOLE_DEBUG("Objective value = %10f", *OBJVAL);
266    
267      const char *modsta;      const char *modsta;
268      error_severity_t t = ASC_USER_SUCCESS;      error_severity_t t = ASC_USER_SUCCESS;
# Line 271  int COI_CALL asc_conopt_status(int* MODS Line 271  int COI_CALL asc_conopt_status(int* MODS
271          case 2: modsta = "locally optimal"; break;          case 2: modsta = "locally optimal"; break;
272          case 3: t = ASC_USER_ERROR; modsta = "unbounded"; break;          case 3: t = ASC_USER_ERROR; modsta = "unbounded"; break;
273          case 4: t = ASC_USER_ERROR; modsta = "infeasible"; break;          case 4: t = ASC_USER_ERROR; modsta = "infeasible"; break;
274            default: t = ASC_PROG_ERR; modsta = "UNKNOWN MODSTA";
275      }      }
276      const char *solsta;      const char *solsta;
277      switch(*SOLSTA){      switch(*SOLSTA){
# Line 278  int COI_CALL asc_conopt_status(int* MODS Line 279  int COI_CALL asc_conopt_status(int* MODS
279          case 2: t = ASC_USER_NOTE; solsta = "iteration interrupted"; break;          case 2: t = ASC_USER_NOTE; solsta = "iteration interrupted"; break;
280          case 3: t = ASC_PROG_NOTE; solsta = "time limit exceeded"; break;          case 3: t = ASC_PROG_NOTE; solsta = "time limit exceeded"; break;
281          case 4: t = ASC_PROG_ERR; solsta = "failed (terminated by solver)"; break;          case 4: t = ASC_PROG_ERR; solsta = "failed (terminated by solver)"; break;
282            default: t = ASC_PROG_ERR; solsta = "UNKNOWN SOLSTA";
283      }      }
284    
285      (void)CONSOLE_DEBUG("CONOPT %s: %s", solsta, modsta);      CONSOLE_DEBUG("CONOPT %s (%d): %s (%d)", solsta, *SOLSTA, modsta, *MODSTA);
286      ERROR_REPORTER_NOLINE(t,"CONOPT %s: %s", solsta, modsta);      ERROR_REPORTER_NOLINE(t,"CONOPT %s: %s", solsta, modsta);
287    
288      return 0;      return 0;

Legend:
Removed from v.916  
changed lines
  Added in v.917

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22