예제 #1
0
long computeCost_sa(Allocation a)
{
	a.computeRT();
	
	//std::cout<<"current cost: "<<a.getRT()<<std::endl;
	
	return a.getRT();
	/*long mem = 0;
     for(int i=0;i<a.getCoreNum();i++)
     {
     auto ts = a.getTaskSet(i);
     RtwOpt opt(*ts);
     mem += opt.computeRTB2();
     }
     return mem;*/
}