Search⌘ K
AI Features

Challenge: Grid Search

Explore how to implement grid search for constrained optimization by selecting the best house location considering distances from a hospital and market. Learn to define and minimize an objective function subject to distance constraints, enhancing your practical optimization skills.

Problem statement

You are searching for a house considering the following two criteria:

  • x1x_1: This is the distance (in km) of the house from the nearest hospital. x1<0x_1 < 0 means that the house is located on the left side (or neighborhood) of the hospital and x10x_1 \geq 0 means that the house is located on the right side (or neighborhood) of the hospital.

  • x2 ...