46ScipDiffParamSet::allocateMemoty(
103 : numBoolParams(0), boolParamNamesSize(0), boolParamNames(0), boolParamValues(0),
104 numIntParams(0), intParamNamesSize(0), intParamNames(0), intParamValues(0),
105 numLongintParams(0), longintParamNamesSize(0), longintParamNames(0), longintParamValues(0),
106 numRealParams(0), realParamNamesSize(0), realParamNames(0), realParamValues(0),
107 numCharParams(0), charParamNamesSize(0), charParamNames(0), charParamValues(0),
108 numStringParams(0), stringParamNamesSize(0), stringParamNames(0), stringParamValuesSize(0), stringParamValues(0)
111 int nParams = SCIPgetNParams (scip);
112 SCIP_PARAM **params = SCIPgetParams (scip);
115 for(
int i = 0; i < nParams; i++ )
117 if( !SCIPparamIsDefault (params[i]) )
119 switch (SCIPparamGetType (params[i]))
121 case SCIP_PARAMTYPE_BOOL:
125 case SCIP_PARAMTYPE_INT:
129 case SCIP_PARAMTYPE_LONGINT:
133 case SCIP_PARAMTYPE_REAL:
137 case SCIP_PARAMTYPE_CHAR:
141 case SCIP_PARAMTYPE_STRING:
169 for(
int i = 0; i < nParams; i++ )
171 if( !SCIPparamIsDefault (params[i]) )
173 switch (SCIPparamGetType (params[i]))
175 case SCIP_PARAMTYPE_BOOL:
176 strcpy(boolName, SCIPparamGetName(params[i]));
178 boolName += ( strlen(SCIPparamGetName(params[i]) ) + 1 );
181 case SCIP_PARAMTYPE_INT:
182 strcpy(intName, SCIPparamGetName(params[i]));
184 intName += ( strlen( SCIPparamGetName(params[i]) ) + 1 );
187 case SCIP_PARAMTYPE_LONGINT:
188 strcpy(longintName, SCIPparamGetName(params[i]));
190 longintName += ( strlen( SCIPparamGetName(params[i]) ) + 1 );
193 case SCIP_PARAMTYPE_REAL:
194 strcpy(realName, SCIPparamGetName(params[i]));
196 realName += ( strlen( SCIPparamGetName(params[i]) ) + 1 );
199 case SCIP_PARAMTYPE_CHAR:
200 strcpy(charName, SCIPparamGetName(params[i]));
202 charName += ( strlen( SCIPparamGetName(params[i]) ) + 1 );
205 case SCIP_PARAMTYPE_STRING:
206 strcpy( stringName, SCIPparamGetName(params[i]) );
207 strcpy( stringValue, SCIPparamGetString(params[i]) );
208 stringName += ( strlen( SCIPparamGetName(params[i]) ) + 1 );
209 stringValue += ( strlen( SCIPparamGetString(params[i]) ) + 1 );
246 paramName += ( strlen(paramName) + 1 );
257 paramName += ( strlen(paramName) + 1 );
268 paramName += ( strlen(paramName) + 1 );
279 paramName += ( strlen(paramName) + 1 );
290 paramName += ( strlen(paramName) + 1 );
300 SCIPsetStringParam(scip, paramName, paramValue)
302 paramName += ( strlen(paramName) + 1 );
303 paramValue += ( strlen(paramValue) + 1 );
315 std::ostringstream s;
323 s << paramName <<
" = ";
333 paramName += strlen(paramName) + 1;
342 paramName += strlen(paramName) + 1;
351 paramName += strlen(paramName) + 1;
360 paramName += strlen(paramName) + 1;
369 paramName += strlen(paramName) + 1;
378 s << paramName <<
" = \"" << paramValue <<
"\"" << std::endl;
379 paramName += strlen(paramName) + 1;
380 paramValue += strlen(paramValue) + 1;
390 gzstream::ogzstream &out
471 gzstream::igzstream &in
476 if( in.eof() )
return false;
size_t charParamNamesSize
bool read(UG::ParaComm *comm, gzstream::igzstream &in)
size_t longintParamNamesSize
size_t boolParamNamesSize
size_t stringParamNamesSize
size_t stringParamValuesSize
void setParametersInScip(SCIP *scip)
void write(gzstream::ogzstream &out)
unsigned int * boolParamValues
size_t realParamNamesSize
long long * longintParamValues
Base class of communicator object.
static ScipParaCommTh * comm
#define THROW_LOGICAL_ERROR2(msg1, msg2)
SCIP parameter set to be transferred ( Only keep difference between default settings ).