Search⌘ K
AI Features

Challenge: Grid Search

Learn to apply grid search for constrained optimization by selecting the best house location based on minimizing an objective function. Understand how to implement the algorithm considering distance constraints from key landmarks like hospitals and markets.

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 ...