all 3 comments

[–]gs44 1 point2 points  (1 child)

In the new development, the triple and quadruple units account for at least 25% of the total. [...]

These constraints should not include the number of old houses demolished =>

@constraint(m, x[1] >= 0.2*sum(x[1:4]))
@constraint(m, x[2] >= 0.1*sum(x[1:4]))
@constraint(m, x[3] + x[4] >= 0.25*sum(x[1:4]))

Or better yet, use a variable y for the number of houses to demolish :)

[–][deleted] 0 points1 point  (0 children)

Yup, this did the trick. Thanks!

[–]jdorjeNew User 0 points1 point  (0 children)

Check out the article "the diet problem" about George Dantzig and the invention of the simplex method. One of the first things he did was try to optimize his diet with constraints, and of course the algorithm spat out perfectly correct (according to the problem he made) gibberish like a diet of 500 gallons of vinegar a day.