Beispiel #1
0
void main(void)
{
   int w[6] = {0, 2, 2, 6, 5, 5};
   int n = 5;
   int c = 16;
   cout << "Max loading is " << MaxLoading(w,c,n) << endl;
}
Beispiel #2
0
void main(void)
{
   int w[6] = {0, 5, 1, 6, 2, 7};
   int n = 5;
   int c = 10;
   cout << "Value of max loading is" << endl;
   cout << MaxLoading(w,c,n) << endl;
}
int main(){
	float o[JOBN][MACHN] = {{2 , 1, 3},{1, 5, 2}, {4, 1, 2}};// o[job][machine
	// @parameter: 
	//	o[][]: pij; 
	//	int k : for k power problem; 
	//	bool b : if true, for makespan problem, otherwise for k power
	MaxLoading run = MaxLoading(o,3,false);
	run.bbRun();
	run.osrslt().print();
	cout<< run.get_result();
	getchar();
	return 0;
}
Beispiel #4
0
void main(void)
{
   int w[6] = {0, 2, 2, 6, 5, 5};
   int x[6];
   int n = 5;
   int c = 16;
   cout << "Value of max loading is" << endl;
   cout << MaxLoading(w,c,n,x) << endl;
   cout << "x values are" << endl;
   for (int i=1; i<=n; i++)
      cout << x[i] << ' ';
   cout << endl;
}