NLP Problem Examples

Proportions of a canister

We are tasked with designing the proportions of a 0.5 liter cylindrical canister to minimize its surface area and therefore the amount of material used.

Cylinder's volume and surface are

Mathematical model

As we are dealing with a quadratic objective function and a cubic equality constraint, the python package CVXPY does not have an interface to a suitable solver. Fortunately, the julia package JuMP does.

Tree nursery

We are tasked with planting a new patch of forest to offset logging activity. Because of the wildlife living there, the young trees need to be fences off from the rest of the forest until they mature.

As we will be planting adjacent plots in the future, we have decided upon fencing off a rectangular area. The factor limiting its size is that we only have 100 meters of suitable fencing. What is the largest rectangular area that we can plant?

Mathematical model

QP-like form

The reason why this problem falls under nonlinear programming is that Q is not positive semi-definite and therefore the problem is non-convex.

Code