Question: Duckwheat is produced in Kansas and Mexico and consumed in New York and California. Kansas produces 15 shnupells of duckwheat and Mexico 8. Meanwhile, New York consumes 10 shnupells and California 13. The transportation costs per shnupell are \(4 from Mexico to New York, \)1 from Mexico to California, \(2 from Kansas to New York, and \)3 and from Kansas to California. Write a linear program that decides the amounts of duckwheat (in shnupells and fractions of a shnupell) to be transported from each producer to each consumer, so as to minimize the overall transportation cost

Short Answer

Expert verified

Answer:

The minimum transportation cost: 4MN+MC+2KN+3KC.

MN+KN=10

MC+KC=13

MN+MC=8

KN+KC=15

MN≥0, MC≥0, KN≥0, KC≥0 will be therequired linear program

Step by step solution

01

Defining the variables

For our convenience, let us denote each country by its first alphabet:

M=Mexico

K=Kansas

N=New York

C=California

Let the number of shnupells shipped from Kansas to New York be “KN” and its transportation cost is $2.So, the transportation cost will become 2KN.

Let the number of shnupells shipped from Kansas to California be “KC” and its transportation cost is $3.So, the transportation cost will become 3KC.

Let the number of shnupells shipped from Mexico to New York be “MN” and its transportation cost is $4.So, the transportation cost will become 4MN.

Let the number of shnupells shipped from Mexico to California be “MC” and its transportation cost is $1.So, transportation cost will become 1MC.

02

Defining the constraints which will be the desired Linear Program

The constraints can be formed as follows:

The minimum transportation cost: 4MN+MC+2KN+3KC.

MN+KN=10

MC+KC=13

MN+MC=8

KN+KC=15

MN≥0, MC≥0, KN≥0, KC≥0 will be therequired linear program.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Direct bipartite matching. We’ve seen how to find a maximum matching in a bipartite graph via reduction to the maximum flow problem. We now develop a direct algorithm.

Let G=(V1V2,E)be a bipartite graph (so each edge has one endpoint in V1and one endpoint in V2), and letMEbe a matching in the graph (that is, a set of edges that don’t touch). A vertex is said to be covered byMif it is the endpoint of one of the edges in M. An alternating path is a path of odd length that starts and ends with a non-covered vertex, and whose edges alternate between Mand E-M.

(a) In the bipartite graph below, a matching Mis shown in bold. Find an alternating path.


(b) Prove that a matchingMis maximal if and only if there does not exist an alternating path with respect to it.

(c) Design an algorithm that finds an alternating path inO(|V|+|E|)time using a variant of breadth-first search.

(d) Give a directO(|V|-|E|)algorithm for finding a maximal matching in a bipartite graph.

A quadratic programming problem seeks to maximize a quadratic objective function (with terms like 3x12or5x1x2) subject to a set of linear constraints. Give an example of a quadratic program in two variables x1, x2 such that the feasible region is nonempty and bounded, and yet none of the vertices of this region optimize the (quadratic) objective.

Find necessary and sufficient conditions on the reals a and b under which the linear program

maxx+yax+by1x,y0

(a) Is infeasible.

(b) Is unbounded.

(c) Has a unique optimal solution.

In a satisfiable system of linear inequalities

a11x1+···+a1nxnb1:am1x1+···+amnxnbm

we describe the inequality as forced-equal if it is satisfied with equality by every solution x = (x1,...,xn)of the system. Equivalently,Piajixibj is not forced-equal if there exists an x that satisfies the whole system and such that Piajixibj.

For example, in

x1+x22-x1-x2-2x11-x20

An edge of a flow network is called critical if decreasing the capacity of this edge results in a decrease in the maximum flow. Give an efficient algorithm that finds a critical edge in a network

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free