Recreate .fet file from incomplete timetable

Started by davvidde, September 26, 2015, 04:18:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davvidde

I get an incomplete timetable with 740 out of 745 activities placed but I get lost the FET instance with it because I close the application.
With some adjustment I saw I can solve timetable manually but now I have the activity.xml file with all activities placed and the original .fet file without the constraints to place them in FET.
Is there a script that read activities.xml file and place, in the .fet file, the "activity has preferred starting time" constraints, in correct positions for all of them?

Thanks
Davide.
Davide.

Liviu Lalescu

#1
A script is not available, but it should not be difficult.

From:

<Activity>
   <Id>445</Id>
   <Day>Marti</Day>
   <Hour>7</Hour>
   <Room>Lab Info</Room>
</Activity>

write:

<ConstraintActivityPreferredStartingTime>
   <Weight_Percentage>100</Weight_Percentage>
   <Activity_Id>445</Activity_Id>
   <Preferred_Day>Marti</Preferred_Day>
   <Preferred_Hour>7</Preferred_Hour>
   <Permanently_Locked>false</Permanently_Locked>
   <Active>true</Active>
   <Comments></Comments>
</ConstraintActivityPreferredStartingTime>

and in another file:

<ConstraintActivityPreferredRoom>
   <Weight_Percentage>100</Weight_Percentage>
   <Activity_Id>445</Activity_Id>
   <Room>Lab Info</Room>
   <Permanently_Locked>false</Permanently_Locked>
   <Active>true</Active>
   <Comments></Comments>
</ConstraintActivityPreferredRoom>

If the day+hour is empty, skip APST (first constraint). If the room is empty, skip APR (second constraint).

You need to add APST constraints in <Time_Constraints_List> and APR constraints in <Space_Constraints_List> in the .fet file.

I can try to help you more, let me know.