Esempio n. 1
0
	double boundClosedGap(int inst, int iter) {
 		if ((inst < _sol->getNumInstances()) && (iter < getIter(inst)) )
			return 
			fabs(computeBoundClosedGap(getDoubleField(inst,iter,F_RES_UBOUND)
						,_sol->getDoubleField(inst,SOLUTIONS_RLT)
					,_sol->getDoubleField(inst,SOLUTIONS_OPT)));
		else {
			printf("boundClosedGapF_res1:: ERROR\n");
			return -COIN_DBL_MAX;
		}
	}
Esempio n. 2
0
	void fprint(FILE* out) {
		for (int i=0;i<_sol->getNumInstances();i++) {
			for (int k=0;k<getIter(i);k++) {
				fprintf(out,"%13s\t%10.2f\t%3d\t%7.2f\t%5d\t%5d"
					,_sol->getInstanceName(i)
					,getDoubleField(i,k,F_RES_UBOUND)
					,getIntField(i,k,F_RES_ITER)
					,getDoubleField(i,k,F_RES_TIME)
					,getIntField(i,k,F_RES_TOTCONS)
					,getIntField(i,k,F_RES_ITERGENCONS));
				if (getDoubleField(i,k,F_RES_CURRHEUR) <= -COIN_DBL_MAX)
					fprintf(out,"\t%10s","N/A");
				else
					fprintf(out,"\t%10.2f",getDoubleField(i,k,F_RES_CURRHEUR));

				if (getDoubleField(i,k,F_RES_BESTHEUR) <= -COIN_DBL_MAX)
					fprintf(out,"\t%10s","N/A");
				else
					fprintf(out,"\t%10.2f",getDoubleField(i,k,F_RES_BESTHEUR));
				fprintf(out,"\n");
			}
		}
	}
Esempio n. 3
0
/* ----------------- */
int getIterAV(int size)
/* ----------------- */
{
    return 3*getIter(size);
}
Esempio n. 4
0
      Node<T> * operator*() const {
	return getIter();
      }