





















Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!






















Consumer’s utility problem
This problem originates the theory of demand in microeconomics. It consists in maximizing the consumer’s utility. The variables represent the amount of each good consumed. The utility function that best represents the preferences of a rational consumer is that with strictly positive marginal utilities (more is better than less) and concave (it is better a mix of different goods than the specialization in consuming just one good). The constraint of this problem derives from the budget of the consumer, with a left-hand side that represents the expense in the goods (price per quantity) and a right-hand side that represents the budget available to the consumer. Additionally, there can be constraints regarding minimum or maximum consumption of some goods.
respectively. It has a budget of 450 euro that must be fully spent in both goods. The utility function is 𝑈(𝑥, 𝑦) = 20𝑥 0 ,^4 𝑦 0 ,^6 , where x represents the consumed units of the first good and y those of the second one. a) Obtain the units of each good consumed, the value of the utility function and the value of the Lagrange multiplier associated with the constraint so that the utility is maximized. b) Explain the meaning of the multiplier. What would approximately be the new optimal utility if the budget available changed to 452 €? c) Solve the problem again for the case where the available budget is 452 €. Compare the result with that obtained in question b).
amounts (x,y,z) consumed of three goods. Said function is 𝑈(𝑥, 𝑦, 𝑧) = 25 𝑥 0 ,^5 𝑦 0 ,^25 𝑧 0 ,^25. The unitary prices of the three goods are 12, 8 y 5 € respectively, and the its budget is 540 €. The third good has a minimum subsistence consumption of 20 units, while the first and the second ones are at maximum saturation levels of 40 units each. a) Obtain the optimal consumption that maximizes the utility, as well as the maximum utility. Does the consumer spend all his budget? b) Obtain the value of the multiplier and its economical meaning.
Firm production problem
This problem can have different formulations. In its most basic version, it consists in minimizing the cost with a minimum production constraint. Alternatively, it can consist in maximizing the production with a cost limitation constraint. In both cases, instead of working with a cost function, we can consider a profit function by adding the selling price of the product. The variables represent the amount of each input used in the production, usually capital and labour, that are transformed into the production of a single good. The production function is usually concave with positive marginal productivities. The most common functions are those with constant returns to scale, and, among them, the Cobb-Douglas function.
Obtain the amount of each of the three products that maximize the profit, as well as the maximum profit. Calculate and explain the meaning of the slack variables and the Kuhn-Tucker multipliers.
benefit for each product is:
It is known that in order to produce one unit of product 1 four hours of labour are needed. To produce one unit of the second or the third product two hours are needed. Moreover, the firm has 16 workers that work 8 hours a day each. a) Obtain the amounts that must be produced of each type of product in order to maximize the firm’s benefit and the maximum benefit. b) Determine, from the results obtained in the previous question, if the firm is interested in increasing or decreasing the number of hours of labour of its staff.
Portfolio selection problem
The objective of this problem is to calculate the optimal capital weightings for a basket of investments that gives the highest return for the least risk. It can be stated maximizing the return with a limit on the risk or, alternatively, minimizing the risk with a guaranteed minimum return. The variables represent the amounts invested in each asset. Additionally, portfolio diversification constraints can be considered.
assets (whose amounts are x and y ). The expected annual return is 12% and 6% respectively. The maximum risk that the investor is willing to take is 1360 units, being the risk function 𝑅(𝑥, 𝑦) = 0,25𝑥 2 + 0,05𝑦 2 + 0,1𝑥𝑦. a) Calculate the amounts that should be invested in each asset in order to maximize the expected return, as well as its value. b) Explain the effect of an increase in the risk that the investor is willing to take (right-hand side of the constraint).
million euro, between European fixed income ( x , in million euro), Spanish variable income ( y , in million euro), European variable income ( z , in million euro) and movable assets ( t , in million euro). The objective is to minimize the risk, which is given by the function 𝑅(𝑥, 𝑦, 𝑧, 𝑡) = 0,25𝑥 2 + 5,25𝑦 2 + 8,5𝑧 2 + 4𝑡 2 + 12,5𝑦𝑧 + 2𝑥𝑦 − 1,5𝑧𝑡. The minimum return desired is 6%, where European fixed income has a predicted return of 1%, Spanish variable income of 10%, European variable income of 15% and movable assets of 4%.
a) Obtain the optimal distribution of the invested capital.
b) Obtain the optimal distribution of the invested capital if the total investment in variable income is not allowed to exceed 25% of the invested capital.
c) Explain the economical meaning of the multiplier associated with the minimum return constraint.
Assorted problems
attics, whose prices are p 1 and p 2 in thousands of euro, respectively. The demand curve for the apartments is d 1 = 200 – 2p 1 , and for the attics it is d (^2) = 300 – 3p 2. The construction company has calculated that, due to the orders placed to their raw material providers, it is more convenient to build eight times more apartments than attics. Furthermore, the company has calculated that building an apartment has a total cost of 65 thousands of €, while the cost of building an attic is 80 thousands of €. Knowing that the budget is 3 million euro: a) Obtain the prices of both types of houses in order to maximize the income. Calculate the number of apartments and attics that have to be built and the maximum income.
b) Would it be interesting to increase the current budget?
cheese, with which two types of cheese spread are produced, normal and high quality, both of which are very popular during Christmas holydays. Each kg of the high quality cheese spread consists of 0’2 kg of fruit mixture, 0’ kg of expensive cheese and 0’5 kg of filler cheese, which is cheap and is stored in large enough amounts. Each kg of normal cheese spread consists of 0’2 kg of fruit mixture, 0’2 kg of expensive cheese and 0’6 kg of filler cheese. Due to past prices policies, it is known that the demand for the high quality cheese spread is d 1 =190-25p (^1) , while the demand for the normal cheese spread is d 2 = 250 - 50p 2 (demand expressed in kg and prices n euro per kg).
a) How many kg of each type of cheese spread should be produced, and what prices must be established in order to maximize the income and sell both types out by the end of the Christmas season? b) What would happen to the income if the shop could have one more kg of expensive cheese? c) How much would the shop be willing to offer for one more kg of fruit mixture?
is given by I(x,y,z) = x^2 + 20y^2 +10z^2 + 20yz. The maximum production capacity of the firm is 5000 units of the three products combined. For market reasons, no more than 1500 units of the second product, and the supply of the first product cannot be less than 1000 nor more than 3000 units. a) Obtain the amounts of each product that the firm should produce in order to maximize its income, and calculate the maximum income. Explain the meaning of the slack variable.
Resource allocation problem
This is one of the most common problems in Linear Programming. As in the case of Non-linear problems, it consists in producing several products with limited production resources in order to maximize the benefits or incomes. In this problem the variables are the amounts produced of each product and each constraint represents the limited availability of a certain resource.
and pear juice that can be mixed with water to produce commercial juice fit for human consumption. The following tableau shows the availability of each juice concentrate in kg (last row); the composition in kg of juice concentrate per litre of commercial juice (shaded matrix); and the selling price of each commercial juice in euro per litre (first column):
Commercial juices Juice concentrate per litre of commercial juice (Kg/l)
Name Price (€/l.) Peach Pineapple Pear Peach 0,6 0,5 0 0
Peach-Pineapple 0,65 0,25 0,5 0
Peach-Pear 0,75 0,2 0 0,
Pineapple 0,7 0 0,9 0 Pear 0,8 0 0 0,
Availability (kg) 150 100 80
The demand of the first three juices must be at least twice that of the last two. At least 30 litres of peach, pineapple and pear each must be produced. The company wants to maximize its income:
a) Define the variables and formulate the problem. b) Solve the problem with LINGO/GAMS. c) Obtain the optimal solution in economical terms for the main variables and the objective function. d) Give the optimal value and the economical meaning of the marginal of the third constraint. e) Give the optimal value and the economical meaning of the slack variable of the first constraint. f) Reason out if there is only one solution or if there are multiple solutions. g) Obtain the sensitivity interval and explain its economical meaning for the price of the peach-pineapple juice.
(in addition to yeast, water and salt) to produce five types of bread: normal, rustic, galician, whole-grain and oil bread. The following table shows the amount (in grams or millilitres) of each ingredient used to produce each type of bread:
Bread Refined powder (gr.)
Whole-grain powder (gr.)
Rye (gr.) Oil (ml.)
Normal 120 0 10 10
Rustic 80 10 30 10
Galician 100 10 50 10 Whole-grain 30 80 20 10
Oil 70 0 20 30
The selling prices are: 65 cents for each unit of normal bread, 70 cents for rustic bread, 80 cents for Galician, 80 cents for whole-grain, and 90 cents for oil bread.
The daily stock of each ingredient is: 3 sacks of 25 kg of refined powder, 5 sacks of 10 kg of whole-grain powder, 2 sacks of 10 kg of rye, and 12 litres of oil.
The maximum daily demand is 700 units for normal, rustic, and Galician bread combined, and 150 units for whole-grain and oil bread together. Furthermore, the number of units of normal bread sold is more than three times the number of units of whole-grain bread. The daily minimum demand of each type of bread is 150 units for the normal bread, 120 for the rustic one, 150 for the Galician one, 50 for the whole-grain one, and 40 for the oil one.
Formulate the problem to determine how many units of each type must be produced in order to maximize the income, assuming that all the produced units are sold.
Diet problem
The diet problem is one of the oldest optimization problems, and it was motivated by the desire of the American army to guarantee some nutritional requirements at the minimum cost. The problem was analyzed and solved by George Stigler using linear programming in 1947.
zebras in the zoo, such that the following estimated vitaminical requirements are fulfilled: it must contain between 26 and 32 units of vitamin A, at least 25 units of vitamin B, at least 30 of vitamin C, and at least 10 of vitamin F. The following table gives the number of units of each vitamin per unit of each one of six different foods, as well as the cost of a unit of the corresponding food. Vitamins Cost per unit Food A B C D 1 1 1 0 1 10 2 1 2 1 0 14 3 0 1 2 0 12
4 3 1 0 1 18 5 2 1 2 0 20 6 1 0 2 1 16
The cooperative has observed that these two brands of wine are difficult to sell, because of their respective high and low alcohol content. For this reason the demand of the first wine is never above 100.000 liters, while de demand of the second one never exceeds 60.000 liters, and there is a surplus of both types every year. This surplus must be destined to the production of alcohol that is sold at a price of 1 euro per liter.
For this reason the cooperative is planning to produce a blending of both types of wine in order to obtain a new wine brand with an intermediate alcohol content, which will have more success in the market.
After a detailed study, the cooperative has determined that the most successful wines are those with between 12 and 13 percent of alcohol content. With a selling price of 5 euro per liter, the cooperative can be sure of selling all the production of this type of wine.
The production cost of wine 1 is 2.5 euro per liter while that of wine 2 is 1. euro per liter. The selling prices are 4 and 2.5 euro, respectively.
Determine the amount of each type of wine that should produced.
Transportation problem
The first written reference of this problem goes back to 1781, when the French mathematician Gaspard Monge described the problem of building and supplying the military fortifications of Napoleon’s armies. Monge was then a general in the Napoleon army. To solve this problem, he used the “cuts and fills” method, consisting in supplying the trenches from the existing depots.
This problem appears formally in 1941, when F.L. Hitchcock publishes an analytic solution to it, although its development arises in the late 40’s, when Koopmans (a young Hollander) writes his PhD thesis on the shipment problems of the Dutch navy.
From this moment on, the range of applications of the transportation problem begins to grow fast, not only military applications, but in the areas of production, distribution, economics...
6.000, and 6.000 monthly litres available, respectively. The carrier needs gasoline in three different locations, which require 5.000, 3.000, and 2. monthly litres, respectively. The price per litre of gasoline delivered at each location is the following:
location 1 2 3
1 2 3 1
provider 2 4 2 5 3 1 8 9
The carrier wishes to minimize the cost
a) Define the variables and formulate the problem. b) Solve the problem with LINGO/GAMS.
c) What is the optimal solution? And the minimum cost? d) What are the minimum and maximum values that the price of the gasoline from provider 2 to location 1 can take without affecting the optimal solution? e) The requirements at location 3 have decreased to 1800 monthly litres. What information do you know about the new optimal solution without solving the problem again?
plants and sells them in Madrid, Barcelona and Valencia. The cost of shipping a car, independently of the model, from each plant to each city are given, in monetary units, in the following table:
Madrid Barcelona Valencia
Plant 1 30 20 40 Plant 2 100 90 40
And the demand of each model in each city is:
Madrid Barcelona Valencia
Model 1 800 2000 4500 Model 2 1200 1000 1500
The maximum production power of each plant is 10000 and 8000 cars, respectively, adding both models.
a) Determine how many cars of each type must be sent from each plant to each city in order to satisfy the demand and minimize the transportation cost. b) What will happen to the previous solution if there is an increase of 10% of the demand of model one in Madrid?
Consider also that the demand of banana and strawberry yoghurts cannot exceed 50 units each, and at least the same amount of natural and sweetened natural yoghurt must be produced as of the other three combined. The company wants to maximize their profit.
a) Define the variables and formulate the problem. b) Solve the problem with LINGO/GAMS. c) Obtain the optimal solution in economical terms for the main variables and the objective function. d) Give the optimal value and explain the economical meaning of the K-T multiplier of the third constraint.
e) Give the optimal value and explain the economical meaning of the slack variable of the first constraint. f) Reason out if there is only one or multiple optimal solutions. g) Give the sensitivity interval and the economical meaning of the price of sweetened yoghurt.
poetry. During the publishing and marketing process, each book goes through 4 sections: text editing, illustrations and pictures design, printing and binding, and distribution and marketing. The following table reports the number of hours of each section employed and the estimated benefit (in hundreds of euro) per unit of each type of book.
Book type Text editing
Pictures and illustration s
Printing and binding
Distribution and marketing Benefits
Novel 10 6 24 8 28 Essay 9 15 28 20 15 Poetry 15 5 48 50 25
Knowing that 1620 hours are available in the text editing section, 748 hours in illustrations and pictures, 4392 in printing and binding, and 5200 in distribution and marketing, the company wants to know how many books of each type they should publish and market in order to maximize their benefits. a) Define the variables and formulate the problem. b) Solve the problem with LINGO/GAMS. c) What is the optimal solution of the problem? And the maximum benefit? Are all the available resources spent? d) Point out which variables are basic and which are nonbasic in the optimal solution. Is there only one solution? Is it degenerate? e) What effect would have on the benefit the production of 4 essay books? f) What are the minimum and maximum values that the number of available hours in the printing and binding section can take so that it will still not be interesting to publish and market essay books? g) What would be the optimal solution of the problem if the benefits of publishing and marketing novels increased to 2875€? And the optimal benefit?
5 and 8 m.u. for each unit produced, respectively. The unitary costs of the production process are 4, 4, and 4 m.u., respectively. Furthermore, the firm has 800 units available of raw material M , as well as a maximum of 1000 hours of labour. The firm must supply at least 30 units of the first article, and they want to maximize the benefits. The hour of labour and raw material needed for each article are shown in the following table:
Article 1 Article 2 Article 3 Raw material 2 15 3
Hours of labour 5 10 4
a) Define the variables and formulate the problem considering that the units produced can be non-integer numbers. b) Solve the problem with LINGO/GAMS. c) Give the optimal production and the maximum benefit. Report the value of the slack variables, too.
d) How will the benefits be affected if the firm must supply 32 units of the first article? e) Reason out what will happen to the current solution if the unitary income for the third article changes to 6 m.u. f) Is the solution still optimal if the amount of raw material available decreases to 650 units?
g) What is the maximum benefit if the hours of labour change to 1100?
which sell for 1.9, 2.45, and 2.2 euro per kg, respectively. Their production requires milk, ferments and a mixture of cereal, of which 40, 9, and 2 kg are available respectively. The composition of a kg of each type of yoghurt can be seen in the following table:
Milk Ferments Cereal Natural 0.85 0.15 0
Bifidus 0.8 0.2 0
Muesli 0.7 0.2 0.
The company wants to maximize its income.
a) Define the variables and formulate the problem. b) Solve the problem with LINGO/GAMS. c) Write the optimal solution and the maximum income. Point out which variables are basic and which are nonbasic in the obtained solution. d) Is it the only optimal solution? Is it degenerate? e) Is the current solution still valid if the income for each kg of muesli yoghurt changes to 2.4 euro?
October November December January February Demand (kg) 60000 150000 230000 90000 70000
The limitations of the warehouse where oranges are manipulated cause that no more than 130000 kg of each variety can be manipulated each month.
a) Considering these limitations, formulate the problem that will give you the amount of kg of each variety that the exporter should market each month to maximize the profit. b) Obtain the sensitivity interval for the demand in October and explain its economical meaning.
million € the next year, and at least 6000 million € for the next 10 years. An estimation of the saving produced by four different measures, as well as of their political cost, has been made. The following table shows the saving obtained with each measure (in million €) and the percentage of the population that are against it:
Measure
Saving next year
Saving for the next 10 years
Political cost
Reduce the retirement pensions the next year: savings produced by each percentage point that they are decreased by.
Increase the retirement age: savings produced by each year that it is increased by.
Ask for more years of contributions to obtain the full pension: saving produced by each additional year required.
Calculate the pension using more years of contributions: saving produced by each additional year used.
All the measures can be instilled in different depth, although the legal age of retirement cannot be increased by more than 3 years and 6 months, and the additional years of contribution of the third and fourth measures must be the same.
Formulate the problem by means of a mathematical programming model to determine the depth of each measure that should be instilled in order to minimize the political cost and still achieve the saving objectives.
Knapsack problem
This type of problems are characterized by the existence of only one constraint (one-dimensional knapsack problems), although sometimes additional constraints may appear (multi-dimensional knapsack).
It is known as the knapsack problem (although sometimes the name flyaway kit problem is also used) because it can be associated with the following example: A hiker must choose among several objects to pack into his knapsack. A certain total weight cannot be exceeded and the goal is to maximize the knapsack’s value, that is, the value of the objects it contains.
most 15 kg and carry 10 kg of hand baggage. She has weighted her empty suitcases. The one she plans to check in weights 4.1 kg, while the one that se plans on carrying as hand baggage weights 2.5 kg. She has a series of objects that would like to carry with her. Foe each one of them, she has estimated the benefit that would yield her and calculated its weight. These data are shown in the following table:
Object 1 Object 2 Object 3 Object 4 Object 5 Object 6 Object 7
Weight 5 4 5 7 4 6 5
Benefit 0.2 0.3 0.5 0.1 0.4 0.7 0.
Furthermore, objects 2 and 7 cannot be carried in the hand baggage, while object 3 must be necessarily carried with her.
Formulate the mathematical programming problem that will solve Inés’ problem.
million euro for the next 4 years. In order to decide which public works should be carried out, a list of preferential works has been elaborated. Choose which projects should be carried out if the cost and the social impact index are given in the following table:
Work Cost (in million €) Social impact index
1 2000 4 2 3000 5
3 1000 3
4 1500 3 5 4000 7
6 500 2
7 1000 4 8 1000 3
Attendance according to film and session 16:00 20: Animated 100 60
Musical 140 180 Drama 50 150
Formulate a mathematical programming problem to determine which films and during which sessions should be scheduled in order to maximize the total attendance, considering that no film can be exhibited twice.
Assorted problems
has decided to redistribute the scholar areas assigned to each school. The town is divided into 10 sectors, each of them with an estimated population of students for the next years. The distance (in km) from the centre of each sector to each school has been determined. The following table reports these data, as well as the maximum capacity of each school:
Distance Sector Students School 1 School 2 School 3
1 450 1'2 1'5 3'
2 400 2'6 4 5' 3 500 0'7 1'1 2'
4 500 1'8 1'3 2
5 400 1'5 0'4 2' 6 450 2 0'6 1'
7 450 1'2 1'4 3'
8 500 3'5 2'3 1' 9 400 3'2 1'2 0'
10 450 3'8 1'8 1
School capacity 1500 2000 1300
The board of directors wants to determine how many students of each sector must attend each school in order to minimize the total travelled distance by the town’s students as a whole.
filtered according to its grade (low or high). The daily capacity of each mine, as well as its daily cost (in millions €), can be seen in the following table:
High-grade mineral (Tm/day)
Low-grade mineral (Tm/day)
Daily cost
Mine 1 4 4 2
Mine 2 6 4 2'
Mine 3 1 6 1'
The company has to produce 54 tons of high-grade mineral and 65 tons of low- grade mineral by the end of the week. Moreover, workers are guaranteed by contract the whole day pay for each day or fraction of day that the mine is open. Determine the number of days that each mine should be open during this week if the company wants to satisfy the production demand with minimum cost. Justify that it is an integer problem.
and open it during the summer of 2011. The options that are being considered are the following ones: For the hotel’s exterior: Basic restoration: cost 45.000 euro New parking lot: cost 20.000 euro Swimming pool: cost 75.000 euro
For the hotel’s ground floor: Basic restoration: cost 75.000 euro New TV room: cost 10.000 euro Cafeteria: cost 25.000 euro For the room floors: Basic restoration: cost 50.000 euro Improvements in each double room: cost 3.000 euro
Improvements in each familiar room: cost 5.000 euro The company expects an increase in the occupation depending on the restorations carried out. A new parking lot would imply 150 additional nights, the pool 450, the new TV room 100, the cafeteria 300, the improvements in the double rooms 15 additional nights per room, and the improvements in the familiar rooms 20 additional nights per room. The total number of double rooms in the hotel is 25, while the number of familiar rooms is 15. Obviously, the restoration of a room must be carried out completely, but it is not necessary to restore them all. The basic restorations must be necessarily carried out. As for the rest of the restorations, each one must be completely done or not done at all. Formulate the problem to determine which restorations should be carried out to maximize the number of additional nights of occupation.
considering 4 possible investments: a bank deposit at an annual rate of 2%, private fixed income at an annual rate of 4,5%, variable income with an