Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with an AMPL Model for the following: The professor in charge of an in

ID: 3773541 • Letter: N

Question

Need help with an AMPL Model for the following:

The professor in charge of an industrial engineering design course is faced with the problem of assigning 28 students to eight projects. Each student must be assigned to one project, and each project group must have 3 or 4 students. The students have been asked to rank the projects, with 1 being the best ranking and higher numbers representing lower rankings. The professor’s goal is to assign projects to every student while minimizing the sum of rankings.

Some of the projects are harder than others to reach without a car. Thus it is desirable that at least a certain number of students assigned to each project must have a car; the numbers of necessary cars vary by project as follows:

A 1   ED 0   EZ 0   G 2   H1 2   H2 2   RB 1 SC 1

The students who have cars are:

Chung, Eng, Manheim, Nathan, Rollins, Demming, Holmes, Morris, Patrick, and Young.

Modify the model to add this car constraint, and solve the problem.

Formulate and solve and alegebraric model in AMPL for the following table of rankings.

I need to know what to put in a .mod file and a .dat file

Explanation / Answer

You are on the right path, but you need to think more of how to represent the assignments. In particular, what does variable list represent in your model:

Perhaps, try to formulate it in a textual form as if you are writing a comment. For example:

Since this is an exercise you are supposed to do yourself, I won't give away the solution.