FET Forum

FET Support (English) => Get Help => Topic started by: HappyIX on June 29, 2013, 07:53:02 AM

Title: Preferred rooms
Post by: HappyIX on June 29, 2013, 07:53:02 AM
Hello,

I have a little bit different concept of preferred rooms than is usual.

* Let's suppose I have a list of rooms 1,2,3,4,5
* Activity A has to take place in rooms: 1,2,3 or 4 and I preferred if it take place in rooms 1,2 or 3.

How can I express this in FET?

I was thinking about this:

    <!-- Activity A has to take place in rooms: 1,2,3 or 4
    <ConstraintActivityPreferredRooms>
      <Weight_Percentage>100</Weight_Percentage>
      <Activity_Id>1</Activity_Id> <!-- activity A -->
      <Number_of_Preferred_Rooms>4</Number_of_Preferred_Rooms>
      <Preferred_Room>1</Preferred_Room>
      <Preferred_Room>2</Preferred_Room>
      <Preferred_Room>3</Preferred_Room>
      <Preferred_Room>4</Preferred_Room>
      <Active>true</Active>
      <Comments/>
    </ConstraintActivityPreferredRooms>

    <!-- Additional constraint should add to the final score a timetable and therefore the rooms 1,2 and 3 should be preferred -->
    <ConstraintActivityPreferredRooms>
      <Weight_Percentage>30</Weight_Percentage>
      <Activity_Id>1</Activity_Id> <!-- activity A -->
      <Number_of_Preferred_Rooms>3</Number_of_Preferred_Rooms>
      <Preferred_Room>1</Preferred_Room>
      <Preferred_Room>2</Preferred_Room>
      <Preferred_Room>3</Preferred_Room>
      <Active>true</Active>
      <Comments/>
    </ConstraintActivityPreferredRooms>


Is it correct way? Or how can it be done properly?

Thank you!
Title: Re: Preferred rooms
Post by: Liviu Lalescu on June 29, 2013, 08:00:30 AM
Yes, this is the correct way, but maybe 30% is too low on the second constraint. I was thinking more like 80%.