Lessons in order of the week

Started by ngoctp29121982, August 02, 2022, 10:19:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ngoctp29121982

Hello Liviu!
My school has a natural science subject (Science Science) of 4=1+1+2 corresponding to physics = 1, chemistry = 1 and biology = 2 corresponding to three teachers: A, B and C
I want to create a constraint that the lessons of the week are in order: Physics-Chemistry-Biology respectively on three different days. Does the fet have that constraint? I looked and didn't find it. Can you help me. Thank you!

Liviu Lalescu

I think you can use two constraints two activities are ordered. And raise min 1 days between activities to 100%.

ngoctp29121982

Am I doing this right? Can you see the attached file for me?

ngoctp29121982


ngoctp29121982

please create an example file for me

Liviu Lalescu

#5
I don't see what is so difficult. I told you very clearly how to solve this. A, B, C, create two activities ordered A, B, then two activities ordered B, C. And min 1 days between A, B, C, 100%.

ngoctp29121982

If I separate the Natural Science subject into 3 subjects: Teacher A teaches Physics (1); Teacher B teaches Chemistry (1) and teacher C teaches Biology (2=1+1). I want to give Physics on Monday, Chemistry on Tuesday and born on Wednesday, May 4, and 5?

Liviu Lalescu

Quote from: ngoctp29121982 on August 02, 2022, 02:30:12 PMIf I separate the Natural Science subject into 3 subjects: Teacher A teaches Physics (1); Teacher B teaches Chemistry (1) and teacher C teaches Biology (2=1+1). I want to give Physics on Monday, Chemistry on Tuesday and born on Wednesday, May 4, and 5?

I don't understand this phrase, it contains maybe some typos? Could you check it, please?

ngoctp29121982

If I have Teacher A who teaches Physics (1); Teacher B teaches Chemistry (1) and Teacher C teaches Biology (2=1+1). I want to randomize the Physics and Biochemistry classes in order of days of the week: For example Physics on Monday, Chemistry on Tuesday, Born on Wednesday and Friday....

Liviu Lalescu

Instead of "Born" do you mean "Biology"?

Add 3 constraints two activities are ordered, and add a min 1 days between activities with 100% for the 4 (sub)activities.

Attached an example.

You might use "two sets of activities are ordered" for easier input, but I am not sure.

ngoctp29121982


ngoctp29121982

I did it, thank you very much. but there are too many constraints because there are many classes that need to be ordered in the physical-chemical-biological subjects. Is there any faster way? for example import data from csv file for example

Liviu Lalescu

As I told you, maybe 2 constraints two sets of activities are ordered: 1) (All PH, All CH), 2) (All CH, All BI).

ngoctp29121982

In my opinion just create a "two groups of activities sorted" constraint to make input easier for the user? Can you fix it in the new version

Liviu Lalescu

It is there: two sets of activities are ordered.