|
Go to the documentation of this file. 62 assert(set->scip != NULL); 64 if( disp->dispcopy != NULL ) 67 SCIP_CALL( disp->dispcopy(set->scip, disp) ); 100 assert(name != NULL); 101 assert(desc != NULL); 102 assert(header != NULL); 103 assert(dispoutput != NULL); 110 (*disp)->dispstatus = dispstatus; 111 (*disp)->dispcopy = dispcopy; 112 (*disp)->dispfree = dispfree; 113 (*disp)->dispinit = dispinit; 114 (*disp)->dispexit = dispexit; 115 (*disp)->dispinitsol = dispinitsol; 116 (*disp)->dispexitsol = dispexitsol; 117 (*disp)->dispoutput = dispoutput; 118 (*disp)->dispdata = dispdata; 119 (*disp)->width = width; 120 (*disp)->priority = priority; 121 (*disp)->position = position; 122 (*disp)->stripline = stripline; 123 (*disp)->initialized = FALSE; 128 (void) SCIPsnprintf(paramdesc, SCIP_MAXSTRLEN, "display activation status of display column <%s> (0: off, 1: auto, 2:on)", name); 130 ( int*)(&(*disp)->dispstatus), FALSE, ( int)dispstatus, 0, 2, SCIPparamChgdDispActive, NULL) ); 141 assert(disp != NULL); 142 assert(*disp != NULL); 143 assert(!(*disp)->initialized); 147 if( (*disp)->dispfree != NULL ) 149 SCIP_CALL( (*disp)->dispfree(set->scip, *disp) ); 166 assert(disp != NULL); 175 if( disp->dispinit != NULL ) 177 SCIP_CALL( disp->dispinit(set->scip, disp) ); 190 assert(disp != NULL); 199 if( disp->dispexit != NULL ) 201 SCIP_CALL( disp->dispexit(set->scip, disp) ); 214 assert(disp != NULL); 218 if( disp->dispinitsol != NULL ) 220 SCIP_CALL( disp->dispinitsol(set->scip, disp) ); 232 assert(disp != NULL); 236 if( disp->dispexitsol != NULL ) 238 SCIP_CALL( disp->dispexitsol(set->scip, disp) ); 251 assert(disp != NULL); 252 assert(disp->dispoutput != NULL); 255 SCIP_CALL( disp->dispoutput(set->scip, disp, file) ); 265 assert(disp != NULL); 276 assert(disp != NULL); 286 assert(disp != NULL); 296 assert(disp != NULL); 306 assert(disp != NULL); 316 assert(disp != NULL); 326 assert(disp != NULL); 336 assert(disp != NULL); 346 assert(disp != NULL); 356 assert(disp != NULL); 372 assert(set->disp_freq >= -1); 373 assert(set->disp_headerfreq >= -1); 374 assert(stat != NULL); 381 && set->disp_freq > 0 382 && (stat-> nnodes % set->disp_freq == 0 || stat-> nnodes == 1)) ) 389 if( (set->disp_headerfreq == 0 && stat-> ndisplines == 0) 390 || (set->disp_headerfreq > 0 && stat-> ndisplines % set->disp_headerfreq == 0) ) 395 for( i = 0; i < set->ndisps; ++i ) 397 assert(set->disps[i] != NULL); 398 if( set->disps[i]->active ) 402 fillspace = set->disps[i]->width - (int)strlen(set->disps[i]->header); 403 for( j = 0; j < (fillspace)/2; ++j ) 406 for( j = 0; j < (fillspace+1)/2; ++j ) 408 stripline = set->disps[i]->stripline; 416 for( i = 0; i < set->ndisps; ++i ) 418 assert(set->disps[i] != NULL); 419 if( set->disps[i]->active ) 424 stripline = set->disps[i]->stripline; 466 for( i = 0; i < set->ndisps; ++i ) 468 width = disps[i]-> width; 469 if( disps[i]->stripline ) 481 for( i = 0; i < set->ndisps; ++i ) 485 assert(!disps[i]->active); 487 width = disps[i]-> width; 488 if( disps[i]->stripline ) 490 if( totalwidth + width <= set->disp_width ) 506 #define MAXDECPOWER 6 535 for( i = 0; i < width-1; ++i ) 540 while( ABS(val) >= maxval && decpower < MAXDECPOWER ) 547 if( width == 2 && val < 0 ) 569 #define MAXTIMEPOWER 4 585 else if( val < 10.0 ) 598 for( i = 0; i < width-1; ++i ) 606 val /= timepowerval[timepower]; 608 if( REALABS(val) + 0.05 < maxval/100 ) 613 if( width == 2 && val < 0.0 ) void SCIPdispLongint(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, SCIP_Longint val, int width)
#define BMSfreeMemoryArray(ptr)
SCIP_DISPDATA * SCIPdispGetData(SCIP_DISP *disp)
SCIP_RETCODE SCIPdispInit(SCIP_DISP *disp, SCIP_SET *set)
#define SCIP_DECL_DISPINITSOL(x)
struct SCIP_DispData SCIP_DISPDATA
SCIP_RETCODE SCIPdispInitsol(SCIP_DISP *disp, SCIP_SET *set)
SCIP_RETCODE SCIPdispAutoActivate(SCIP_SET *set)
datastructures for displaying runtime statistics
SCIP_RETCODE SCIPdispPrintLine(SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, SCIP_STAT *stat, FILE *file, SCIP_Bool forcedisplay, SCIP_Bool endline)
SCIP_RETCODE SCIPdispOutput(SCIP_DISP *disp, SCIP_SET *set, FILE *file)
SCIP_RETCODE SCIPdispFree(SCIP_DISP **disp, SCIP_SET *set)
SCIP_RETCODE SCIPdispExit(SCIP_DISP *disp, SCIP_SET *set)
const SCIP_Real timepowerval[]
void SCIPdispInt(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, int val, int width)
const char * SCIPdispGetDesc(SCIP_DISP *disp)
int SCIPsnprintf(char *t, int len, const char *s,...)
enum SCIP_Retcode SCIP_RETCODE
enum SCIP_VerbLevel SCIP_VERBLEVEL
SCIP_RETCODE SCIPdispCreate(SCIP_DISP **disp, SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, const char *name, const char *desc, const char *header, SCIP_DISPSTATUS dispstatus, SCIP_DECL_DISPCOPY((*dispcopy)), SCIP_DECL_DISPFREE((*dispfree)), SCIP_DECL_DISPINIT((*dispinit)), SCIP_DECL_DISPEXIT((*dispexit)), SCIP_DECL_DISPINITSOL((*dispinitsol)), SCIP_DECL_DISPEXITSOL((*dispexitsol)), SCIP_DECL_DISPOUTPUT((*dispoutput)), SCIP_DISPDATA *dispdata, int width, int priority, int position, SCIP_Bool stripline)
SCIP_Longint lastdispnode
const char * SCIPdispGetHeader(SCIP_DISP *disp)
#define SCIP_DECL_DISPCOPY(x)
SCIP_RETCODE SCIPdispCopyInclude(SCIP_DISP *disp, SCIP_SET *set)
#define SCIP_DECL_DISPINIT(x)
int SCIPdispGetPriority(SCIP_DISP *disp)
SCIP_DISPSTATUS SCIPdispGetStatus(SCIP_DISP *disp)
SCIP_RETCODE SCIPdispExitsol(SCIP_DISP *disp, SCIP_SET *set)
#define BMSallocMemory(ptr)
int SCIPdispGetWidth(SCIP_DISP *disp)
void SCIPsortPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), int len)
internal methods for global SCIP settings
static SCIP_DECL_SORTPTRCOMP(dispComp)
int SCIPdispGetPosition(SCIP_DISP *disp)
#define BMSfreeMemory(ptr)
SCIP_RETCODE SCIPsetAddIntParam(SCIP_SET *set, SCIP_MESSAGEHDLR *messagehdlr, BMS_BLKMEM *blkmem, const char *name, const char *desc, int *valueptr, SCIP_Bool isadvanced, int defaultvalue, int minvalue, int maxvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
#define BMSduplicateMemoryArray(ptr, source, num)
public data structures and miscellaneous methods
static const char * paramname[]
#define SCIP_DECL_DISPFREE(x)
SCIP_Bool SCIPdispIsInitialized(SCIP_DISP *disp)
SCIP_DECL_PARAMCHGD(SCIPparamChgdDispActive)
void SCIPdispSetData(SCIP_DISP *disp, SCIP_DISPDATA *dispdata)
#define SCIP_DECL_DISPEXITSOL(x)
#define SCIP_DECL_DISPEXIT(x)
static const char decpowerchar[]
public methods for message output
SCIP_DISPSTATUS dispstatus
void SCIPmessageFPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...)
enum SCIP_DispStatus SCIP_DISPSTATUS
internal methods for problem statistics
const char * SCIPdispGetName(SCIP_DISP *disp)
void SCIPdispTime(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, SCIP_Real val, int width)
SCIP_RETCODE SCIPautoselectDisps(SCIP *scip)
static const char timepowerchar[]
common defines and data types used in all packages of SCIP
#define SCIP_DECL_DISPOUTPUT(x)
struct BMS_BlkMem BMS_BLKMEM
internal methods for displaying runtime statistics
memory allocation routines
|