subject

Suppose you’re consulting for a company that manufactures pc equipment and ships it to distributors all over the country. for each of the next n weeks, they have a projected supply si of equipment (measured in pounds), which has to be shipped by an air freight carrier. each week’s supply can be carried by one of two air freight companies: a or b. company a charges a fixed rate r per pound (so it costs r*si to ship a week’s supply si . company b makes contracts for a fixed amount c per week, independent of the weight. however, contracts with company b must be made in blocks of four consecutive weeks at a time. a schedule, for the pc company, is a choice of air freight company (a or b) for each of the n weeks, with the restriction that company b, whenever it is chosen, must be chosen for blocks of four contiguous weeks at a time. the cost of a schedule is the total amount paid to company a and b. example. suppose r=1, c=10, and the sequence of values is: 11,9,9,12,12,12,12,9,9,11. then the optimal schedule would be to choose company a for first three weeks, then company b for a block of four consecutive weeks, and then company a for the final three weeks. for this problem, you are asked to (1) write the iterative algorithm to find the minimum cost for shipping the equipment for next n weeks. (2) write the algorithm to find the optimal schedule.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
You know the right answer?
Suppose you’re consulting for a company that manufactures pc equipment and ships it to distributors...
Questions
question
Mathematics, 15.10.2020 09:01
question
Mathematics, 15.10.2020 09:01
Questions on the website: 13722360