A builder has purchased $21,000$ square meters of land on which it is planned to build two types of houses, X(detached) and Y(a combination of town-house units), within an overall budget of $2100000$ euros.

A type X house costs $35000$ euros to build and requires $600$ square meters of land. A type Y house cost $60000$ euros to build and requires $300$ square meters of land.

To comply with local planning regulations, not more than $40$ buildings may be constructed on this land, but there must be at least five of each type. From past experience, it is known that the profit per type X house is about $10000$ euros and per type Y house to be about $6000$ euros.Profit is to maximized


The problem must be formulated in the form of linear programming and has to be solved in EXCEL by SOLVER. Based on this output, you have to state what the optimal solution is.


  • Definition Of The Variables

X: Type X houses(Detached)

Y: Type Y houses(a combination of town-house units)

  • Objective Function

Maximize problem(Profit is to maximized) $$\textrm{Max profit} =10000X + 6000Y$$

  • Constraints

$X+Y \leq 40$ (Not more than $40$ Buildings)

$600X+300Y \leq 21000$(Square meters Constraint)

$35000X+60000Y \leq 2100000$(Land requirements)

$X \geq 5$ (At Least Five Of Each Type)

$Y \geq 5$ (At Least Five Of Each Type)

So, when I get these constraints in my excel, Solver can't find a feasible solution and I don't know why. Is there any problem with my mathematical modelling? I believe that the constraints are obvious from the exercise!

This is my Formulation in Excel: enter image description here

and this is the message when I use Solver to solve it and find MaxProf: enter image description here

I would be really grateful if somebody can help me with this as it's important for the next questions of my project! Any thorough solution or explanation would be really helpful!

Thanks in advance!

  • $\begingroup$ I'm voting to close this question as off-topic because the question is not math related. Better site maybe super user meta.stackexchange.com/questions/155487/… $\endgroup$ Dec 26 '18 at 13:03
  • $\begingroup$ I´ve done the same in excel. It gave me the same message. It seems that the program is not feasible. Have you tried to sketch the feasible solution space? $\endgroup$ Dec 26 '18 at 13:17
  • $\begingroup$ Υeah, but why? Did you use the same mathematical modelling as me? It seems impossible to me that the program is not feasible, because it's only the first question in my project. All the other questions depend on this question! Strange ha? $\endgroup$ Dec 26 '18 at 13:26
  • $\begingroup$ @callculus yeah and I didn't find any feasible solution! $\endgroup$ Dec 26 '18 at 13:31
  • $\begingroup$ It is clear that the problem has no solution. With a minimum of 5 houses of each, you don’t have enough land. $\endgroup$ Dec 26 '18 at 13:48

You have made a typo at the exercise. $\text{It is "A builder has purchased 21,00}$ $\color{red}{0}$ $\text{square meters of land}$ $\text{on which it is planned to build... "}$

But you have written it at your constraint: $600X+300Y \leq 21,000 \ \ $ (Square meters Constraint)

If you use this constraint the problem is feasible. This is what I got by using the Excel solver:

enter image description here

Excel sheet with formulas

enter image description here

Input mask

enter image description here

  • 1
    $\begingroup$ This is after using Solver?I use Sumproduct function,not Sum!Is this wrong?And what is these $1050000$ and $600000$??From where did you get these? $\endgroup$ Dec 26 '18 at 14:07
  • $\begingroup$ It is $30\cdot 35000=1,050,000$ for instance. And similar for y: $10\cdot 60,000=600,000$ $\endgroup$ Dec 26 '18 at 14:10
  • $\begingroup$ So,i made mistake with the variables.I use 1 and 1 but that's wrong because i have a constraint that tells me that i have $Y \geq 5$ and $X \geq 5$.Right? $\endgroup$ Dec 26 '18 at 14:12
  • $\begingroup$ And why you use Sum function? $\endgroup$ Dec 26 '18 at 14:14
  • 1
    $\begingroup$ No problem. We are here to help, especially on Christmas. Yeah, I´ve used the solver. $\endgroup$ Dec 26 '18 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.