37#ifndef __SCIP_PARA_SOLUTION_H__
38#define __SCIP_PARA_SOLUTION_H__
81 for(
int i = 0; i <
nVars; i++ )
94 for(
int i = 0; i <
nVars; i++ )
107 double inObjectiveFunctionValue,
109 int *inIndicesAmongSolvers,
116 values =
new SCIP_Real[inNVars];
117 for(
int i = 0; i < inNVars; i++ )
145 void setValue(
int i, SCIP_Real val){ assert(i < nVars && i >= 0 );
values[i] = val; }
149 void write(gzstream::ogzstream &out);
159 std::ostringstream s;
161 for(
int i = 0; i <
nVars; i++ )
165 s <<
", val = " <<
values[i] << std::endl;
void setObjectiveFuntionValue(SCIP_Real val)
int * indicesAmongSolvers
ScipParaSolution(ScipParaSolver *solver, SCIP_Real objval, int inNvars, SCIP_VAR **vars, SCIP_Real *vals)
const std::string toString()
int indexAmongSolvers(int index)
bool read(UG::ParaComm *comm, gzstream::igzstream &in)
ScipParaSolution(double inObjectiveFunctionValue, int inNVars, int *inIndicesAmongSolvers, SCIP_Real *inValues)
void write(gzstream::ogzstream &out)
double getObjectiveFunctionValue()
virtual ~ScipParaSolution()
void setValue(int i, SCIP_Real val)
double objectiveFunctionValue
int getOriginalIndex(int index)
bool isOriginalIndeciesMap()
Base class of communicator object.
static ScipParaCommTh * comm
ParaSolver extension for SCIP: Parallelized solver implementation for SCIP.