Scippy

UG

Ubiquity Generator framework

ScipParaSolution Class Reference

#include <scipParaSolution.h>

Inheritance diagram for ScipParaSolution:
BbParaSolution ParaSolution ScipParaSolutionMpi ScipParaSolutionTh

Public Member Functions

 ScipParaSolution ()
 
 ScipParaSolution (ScipParaSolver *solver, SCIP_Real objval, int inNvars, SCIP_VAR **vars, SCIP_Real *vals)
 
 ScipParaSolution (double inObjectiveFunctionValue, int inNVars, int *inIndicesAmongSolvers, SCIP_Real *inValues)
 
virtual ~ScipParaSolution ()
 
double getObjectiveFunctionValue ()
 
void setObjectiveFuntionValue (SCIP_Real val)
 
int getNVars ()
 
int indexAmongSolvers (int index)
 
SCIP_Real * getValues ()
 
void setValue (int i, SCIP_Real val)
 
void write (gzstream::ogzstream &out)
 
bool read (UG::ParaComm *comm, gzstream::igzstream &in)
 
const std::string toString ()
 
- Public Member Functions inherited from BbParaSolution
 BbParaSolution ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~BbParaSolution ()
 destructor More...
 
virtual double getObjectiveFunctionValue ()=0
 get objective function value More...
 
virtual double getCutOffValue ()
 get cutoff value More...
 
- Public Member Functions inherited from ParaSolution
 ParaSolution ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~ParaSolution ()
 destructor More...
 
virtual double getObjectiveFunctionValue ()=0
 get objective function value More...
 
virtual ParaSolutionclone (ParaComm *comm)=0
 create clone of this object More...
 
virtual void bcast (ParaComm *comm, int root)=0
 broadcast solution data More...
 
virtual void send (ParaComm *comm, int destination)=0
 send solution data More...
 
virtual void receive (ParaComm *comm, int source)=0
 receive solution data More...
 
virtual void write (gzstream::ogzstream &out)=0
 function to write ParaSolution object to checkpoint file More...
 
virtual bool read (ParaComm *comm, gzstream::igzstream &in)=0
 function to read ParaSolution object from checkpoint file More...
 
virtual const std::string toString ()
 stringfy ParaSolution object More...
 

Protected Attributes

double objectiveFunctionValue
 
int nVars
 
int * indicesAmongSolvers
 
SCIP_Real * values
 

Detailed Description

ScipParaSolution class

Definition at line 49 of file scipParaSolution.h.

Constructor & Destructor Documentation

◆ ScipParaSolution() [1/3]

constructor

Definition at line 58 of file scipParaSolution.h.

◆ ScipParaSolution() [2/3]

◆ ScipParaSolution() [3/3]

ScipParaSolution ( double  inObjectiveFunctionValue,
int  inNVars,
int *  inIndicesAmongSolvers,
SCIP_Real *  inValues 
)
Parameters
inObjectiveFunctionValueobjective function value
inNVarsnumber of variables
inIndicesAmongSolversarray of variable indices ( probindex )
inValuesarray of bounds which the branchings

Definition at line 106 of file scipParaSolution.h.

References ScipParaSolution::indicesAmongSolvers, ScipParaSolution::nVars, and ScipParaSolution::values.

◆ ~ScipParaSolution()

virtual ~ScipParaSolution ( )
virtual

destructor

Definition at line 126 of file scipParaSolution.h.

References ScipParaSolution::indicesAmongSolvers, and ScipParaSolution::values.

Member Function Documentation

◆ getNVars()

◆ getObjectiveFunctionValue()

◆ getValues()

◆ indexAmongSolvers()

◆ read()

bool read ( UG::ParaComm comm,
gzstream::igzstream &  in 
)
virtual

◆ setObjectiveFuntionValue()

void setObjectiveFuntionValue ( SCIP_Real  val)

set objective function value

Definition at line 137 of file scipParaSolution.h.

References ScipParaSolution::objectiveFunctionValue.

Referenced by ScipParaInitiator::tryToSetIncumbentSolution().

◆ setValue()

void setValue ( int  i,
SCIP_Real  val 
)

◆ toString()

const std::string toString ( )
virtual

◆ write()

void write ( gzstream::ogzstream &  out)
virtual

Member Data Documentation

◆ indicesAmongSolvers

◆ nVars

◆ objectiveFunctionValue

◆ values