47 #define TABLE_NAME "relaxsdp" 48 #define TABLE_DESC "advanced SDP relaxator statistics table" 49 #define TABLE_ACTIVE TRUE 50 #define TABLE_POSITION 17100 51 #define TABLE_EARLIEST_STAGE SCIP_STAGE_SOLVING 74 assert( scip != NULL );
75 assert( table != NULL );
87 SCIP_TABLEDATA* tabledata;
89 assert( scip != NULL );
90 assert( table != NULL );
91 tabledata = SCIPtableGetData(table);
92 assert( tabledata != NULL );
94 SCIPfreeMemory(scip, &tabledata);
95 SCIPtableSetData(table, NULL);
105 SCIP_TABLEDATA* tabledata;
107 assert( table != NULL );
108 tabledata = SCIPtableGetData(table);
109 assert( tabledata != NULL );
111 tabledata->relaxSDP = SCIPfindRelax(scip,
"SDP");
112 assert( tabledata->relaxSDP != NULL );
122 SCIP_TABLEDATA* tabledata;
123 SCIP_RELAX* relaxsdp;
129 assert( scip != NULL );
130 assert( table != NULL );
132 tabledata = SCIPtableGetData(table);
133 assert( tabledata != NULL );
135 relaxsdp = tabledata->relaxSDP;
136 assert( relaxsdp != NULL );
143 SCIPinfoMessage(scip, file,
" SDP-Solvers : Time Opttime Solves Iterations Iter/call Fast Medium Stable Penalty Unsolved Infeas Allfixed OnevarSDP\n");
146 if ( tabledata->absolute )
148 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10d %10d %10.2f %10d %10d %10d %10d %10d %10d %10d %10d\n",
157 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10d %10d %10.2f %8.2f %% %8.2f %% %8.2f %% %8.2f %% %8.2f %% %10d %10d %10d\n",
166 ninfeasible, nallfixed, nonevarsdp);
171 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s\n",
173 "-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-");
178 SCIPinfoMessage(scip, file,
" SDP-Solvers : Time Opttime Solves Iterations Iter/call Default Penalty Unsolved Infeas Allfixed OnevarSDP\n");
181 if ( tabledata->absolute )
183 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10d %10d %10.2f %10d %10d %10d %10d %10d %10d\n",
188 ninfeasible, nallfixed, nonevarsdp);
192 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10d %10d %10.2f %8.2f %% %8.2f %% %8.2f %% %10d %10d %10d\n",
199 ninfeasible, nallfixed, nonevarsdp);
204 SCIPinfoMessage(scip, file,
" %-14.14s: %10.2f %10.2f %10s %10s %10s %10s %10s %10s %10s %10s %10s %10s\n",
206 "-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-");
223 SCIP_TABLEDATA* tabledata;
225 assert( scip != NULL );
228 SCIP_CALL( SCIPallocMemory(scip, &tabledata) );
232 tableCopyRelaxSdp, tableFreeRelaxSdp, NULL, NULL,
233 tableInitsolRelaxSdp, NULL, tableOutputRelaxSdp,
237 SCIP_CALL( SCIPaddBoolParam( scip,
"table/relaxsdp/absolute",
"Should statistics be printed in absolute numbers (true) or percentages (false)?",
238 &(tabledata->absolute), FALSE, TRUE, NULL, NULL) );
static SCIP_DECL_TABLEFREE(tableFreeRelaxSdp)
static SCIP_DECL_TABLEOUTPUT(tableOutputRelaxSdp)
SCIP_RETCODE SCIPincludeTableRelaxSdp(SCIP *scip)
int SCIPrelaxSdpGetNSdpPenalty(SCIP_RELAX *relax)
const char * SCIPsdpiGetSolverName(void)
SCIP_RETCODE SCIPrelaxSdpGetStatistics(SCIP_RELAX *relax, int *ninfeasible, int *nallfixed, int *nonevarsdp)
int SCIPrelaxSdpGetNSdpUnsolved(SCIP_RELAX *relax)
#define TABLE_EARLIEST_STAGE
int SCIPrelaxSdpGetNSdpStable(SCIP_RELAX *relax)
int SCIPrelaxSdpGetNSdpMedium(SCIP_RELAX *relax)
SCIP_Real SCIPrelaxSdpGetOptTime(SCIP_RELAX *relax)
int SCIPrelaxSdpGetNSdpInterfaceCalls(SCIP_RELAX *relax)
int SCIPrelaxSdpGetNSdpCalls(SCIP_RELAX *relax)
advanced SDP relaxator statistics table
static SCIP_DECL_TABLEINITSOL(tableInitsolRelaxSdp)
int SCIPrelaxSdpGetNSdpFast(SCIP_RELAX *relax)
int SCIPrelaxSdpGetNIterations(SCIP_RELAX *relax)
static SCIP_DECL_TABLECOPY(tableCopyRelaxSdp)
SCIP_Real SCIPrelaxSdpGetSolvingTime(SCIP *scip, SCIP_RELAX *relax)