Changeset 301
- Timestamp:
- 06/30/09 00:48:14 (15 years ago)
- Location:
- vtcross/trunk/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cognitive_engines/CognitiveEngine.cpp
r285 r301 680 680 if(rc == 0){ 681 681 /* Adapt the returned parameters to meet the objective */ 682 WARNING("Cognitive Engine:: Found\n");682 LOG("Cognitive Engine:: Found\n"); 683 683 684 684 /* Should do a random adaptation.. */ … … 691 691 } 692 692 } else if(rc == 31337) { 693 WARNING("Cognitive Engine:: Not Found.\n");693 LOG("Cognitive Engine:: Not Found.\n"); 694 694 /* No rows in the CBR, pick default parameters */ 695 695 /* Currently this is hard coded and implementation specific! */ … … 698 698 699 699 } else { 700 WARNING("Cognitive Engine:: Search return an invalid value.\n");700 LOG("Cognitive Engine:: Search return an invalid value.\n"); 701 701 } 702 702 -
vtcross/trunk/src/cognitive_engines/cbr.c
r230 r301 202 202 unsigned int i; 203 203 char str_buffer[64]; 204 //printf("number of ops %d:\n", _n);204 printf("number of ops %d:\n", _n); 205 205 for (i=0; i<_n; i++) { 206 206 // ensure valid ops value … … 212 212 strcat(_cbr->command, _names[i]); 213 213 strcat(_cbr->command, ops_str[_ops[i]]); 214 printf("search command: %s\n", _cbr->command); 214 215 sprintf(str_buffer, "%E", _vals[i]); 215 216 strcat(_cbr->command, str_buffer); -
vtcross/trunk/src/libvtcross/swig/libcross_demo.py
r299 r301 18 18 19 19 p = GetOptimalParameters(o,2,currentParameters,2); 20 21 for i in range(2): 22 print p[i].name, p[i].value 23 24