C suppose that the florist has the option to purchase

Info icon This preview shows pages 6–8. Sign up to view the full content.

View Full Document Right Arrow Icon
(c) Suppose that the florist has the option to purchase 10 additional shrubs at a cost of $5 per shrub. Is this a good idea? Could the florist increase her total profit by doing this?
Image of page 6

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
set Flower; set Layout; param available {Flower}; param profit {Layout}; param usage {Layout, Flower}; var x {Layout} >= 0; maximize z: sum {i in Layout} profit[i] * x[i]; s.t. inventory {j in Flower}: sum {i in Layout} usage[i,j] * x[i] <= available[j]; data; set Flower := tulip daffodil shrub; set Layout := one two three; param available := tulip 1000 daffodil 800 shrub 100; param profit := one 50 two 30 three 60; param usage : tulip daffodil shrub := one 30 20 4 two 10 40 3 three 20 50 2; Figure 1: AMPL model for problem 6
Image of page 7
ampl: model flowers.mod; ampl: option solver cplex; ampl: option cplex_options ’sensitivity’; ampl: solve; CPLEX 11.2.0: sensitivity CPLEX 11.2.0: optimal solution; objective 1512.5 2 dual simplex iterations (1 in phase I) suffix up OUT; suffix down OUT; suffix current OUT; ampl: display x.lb, x, x.ub, x.rc; : x.lb x x.ub x.rc := one 0 21.25 Infinity 0 three 0 7.5 Infinity 0 two 0 0 Infinity -29.375 ; ampl: display inventory; inventory [*] := daffodil 0.875 shrub 8.125 tulip 0 ; ampl: display inventory.down, inventory.current, inventory.up; : inventory.down inventory.current inventory.up := daffodil 500 800 2500 shrub 32 100 130.909 tulip 787.5 1000 1e+20 ; Figure 2: AMPL session for problem 6
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern