/*------------------------------------------------------------------------------- F|perm|max(Ci) Ütemezési fedadat szimulációja. Egyutas előzésnélküli többoperációs termelésütemezési feladat. A Simulation_FS adott műveleti idők és adott indítási sorrend esetében kiszámítja az operációk indítási és befejezési időpontjait. -------------------------------------------------------------------------------*/ #include #include typedef struct{ int id; //identifier of the job long* ProcT; //processing time of the operations long* StartT; long* EndT; } T_JOB; void Simulation_FS( T_JOB* job, int NJ, int NM, int* s, long t_ref); void Print_Job_Gantt( T_JOB* job, int NJ, int NM, int* s); long Evaluation_FS( T_JOB* job, int NJ, int NM, int* s); int main(int argc, char* argv[]) { int NJ; //number of jobs in the system int NM; //number of machines (people) int i; //index of job int m; //index of machine T_JOB* job; //list of jobs int* s; //schedule long Cmax; //completion time //adatok betoltese printf("\n Egyutas, elozes nelkuli utemezesi feladat."); printf("\n Munkak szama:"); scanf("%d", &NJ); printf("\n Gepek szama:"); scanf("%d", &NM); //memoriamodell job = (T_JOB*) calloc(NJ, sizeof(T_JOB) ); //strukturavektor for( i=0; i