FET Forum

FET Support (English) => Get Help on Your Input File => Topic started by: Emily26 on October 22, 2015, 10:58:58 AM

Title: help with XML file
Post by: Emily26 on October 22, 2015, 10:58:58 AM
Hello,

Is it Possible to Write all the data (Courses, Teachers act)
and especially define constraints in a XML file?

It is important to be an Easy way and Friendly for the user , Because all the data I have is in an Excel file already,

after writing everything in Excel I need to import it back to the program

Unfortunately , the file that I succeed to export from the FET to Excel has no readable Structure .

Thanks!
Title: Re: help with XML file
Post by: Liviu Lalescu on October 22, 2015, 11:26:15 AM
I am not sure what you mean.

The .fet XML input file, which can be loaded directly into FET, has a simple enough XML structure. You can simply open/write it with an XML viewer/editor.

You can also import/export from/to FET CSV values, but the constraints cannot be managed in this way.
Title: Re: help with XML file
Post by: Emily26 on October 28, 2015, 11:08:33 AM
What I meant is where can I find information about what is the TAG name of every constrain in the XML, and his exact format.

Additionally, does the algorithm of scheduling rooms prefers to stay in the same room (if available)  in the building rather than moving to another room in the same building? there is constrain about minimum number of changes between buildings what about moving inside the building?

Thank you again for you help, the program is awesome ! :D
Title: Re: help with XML file
Post by: Liviu Lalescu on October 28, 2015, 12:02:24 PM
Quote from: Emily26 on October 28, 2015, 11:08:33 AM
What I meant is where can I find information about what is the TAG name of every constrain in the XML, and his exact format.

You have three variants:

1) Open the file fet-v.v.v/translations/test-all-constraints.fet and see it, there are all the constraints.

2) Open the file fet-v.v.v/src/engine/timeconstraints.cpp, each constraint has a function getXmlDescription. This is the part referring to writing constraints to the hard disk.

3) Not recommended: Open the file fet-v.v.v/src/engine/rules.cpp, near the end (from line 7082 to the end of the file) there are functions in the form read... . You can see the reading of the constraints. But this is not recommended, as there are some deprecated constraints listed here and some deprecated members, so you will lose time.

Quote
Additionally, does the algorithm of scheduling rooms prefers to stay in the same room (if available)  in the building rather than moving to another room in the same building? there is constrain about minimum number of changes between buildings what about moving inside the building?

There is no constraint about moving inside the same building. Only some activities space constraints: activities same room if consecutive and activities occupy max different rooms, and these can have only 100% weight.