Coder Social home page Coder Social logo

Comments (3)

tomas-muller avatar tomas-muller commented on September 28, 2024

The Objectives column shows the difference in the parameter when the change is done. As the solver tries to minimize the weighted sum of various criteria, the preferences has the following values:

  • Strongly Preferred -4
  • Prefered -1
  • Neutral 0
  • Discouraged +1
  • Strongly Discouraged +4

Please note that Available Instructors table considers the whole change, including the conflicting assignment that would have to be unassigned. So, because there would be one less teaching assignment assigned that prefers two attributes, the difference in the attribute preference would be +2 from what it is now.

In the Assigned Instructors table, the Objectives shows the change of just this particular assignment and as the instructor satisfies both prefered attributes, this assignment contributes to the overall attribute preference by -2 (please note that we want to minimize the overall value, so a negative value is what we want).

from cpsolver.

KarthikRv93 avatar KarthikRv93 commented on September 28, 2024

@tomas-muller,
Thanks for your reply :)
I understand the other part of your answer, but I don't understand when you say:

" Please note that Available Instructors table considers the whole change, including the conflicting assignment that would have to be unassigned. So, because there would be one less teaching assignment assigned that prefers two attributes, the difference in the attribute preference would be +2 from what it is now
"

In the above scenario :
MAT-342 has to be assigned to Prof.Tim Ferguson even though I consider all the constraints as you have mentioned in the above answer.
I am asking this question because this is happening for a lot of other professors as well. So I want to understand the reason behind the wrong results so that we can change the data accordingly. If possible, can you explain taking the above example of MAT-342 which will clarify our doubt on other cases as well.

from cpsolver.

tomas-muller avatar tomas-muller commented on September 28, 2024

Well, the question was about attribute preferences. The Prof."Eric Kostelich" is currently assigned to the section on the first screenshot and he is meeting both preferred attribute, hence the value -2 (-1 for each satisfied preferred attribute). This takes into account this one assignment and its contribution to the various optimization criteria.

The Prof.Tim Ferguson has currently a full schedule (I am guessing here), so assigning him to the above section would mean he would get removed from MAT 142 which looks like also has two satisfied preferred attributes. So, making the change (assigning Prof.Tim Ferguson to MAT 343 and leaving MAT 142 not assigned) has a difference in the attribute preferences +2 (no change for MAT 343 as we are swapping two instructors that meet both preferences, two no longer satisfied preferences for MAT 343).

Please note that you can explore a bigger change by following up on the assignments (click on the instructor in the Available Instructors table, than click on the unassigned teaching assignment and find a new instructor for it, etc.). For instance, see what a difference it would make in the cost to actually swap the two professors between the two courses. You can also see the Suggestions that try to do just that automatically (ordered by the cost of the change). Usually, if you left the solver running long enough, you should not be able to make any simple swap of two variables that would improve the overall solution value (while the solver cannot guarantee optimality, the produced solution is usually at least locally optimal).

You say that the results are wrong and that the MAT 342 (the screenshot is for MAT 343) has to be assigned to Prof.Tim Ferguson, I do not see that in the data. There is only that one soft course preference on the instructor that can be easily overpowered by other criteria (e.g., the two distribution preferences).

So, please, do try to make the changes you think the solver should have done and see if they are even feasible to make and what they would mean in terms of the overall solution value. It is possible you may need to adjust the weights of some of the criteria to better suit your needs (e.g., put more weight on the Course Preferences).

from cpsolver.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.