This is a script to find appartments in an optimal location with to desired nearby locations.
This is the structure of the parameter file
School: 34.138840, -118.125094, a*r.^2+b*r, {a,b}, [2,1]
Climbing: 34.057231, -118.240315, a*r.^2+b*r, {a,b}, [1,1]
Hiking: 34.205153, -118.128317, a*r.^2+b*r, {a,b}, [1,1]
Downtown_LA: 34.052249, -118.242911, a/r, {a}, [0.01]
Parameters
Get the information from the parameter file
Generate the cost function
Plot the cost function
Find the optimal location
Open up google maps and zillow
This opens the webpages to show the optimal location with respect to the nearby locations, and apartments in the area
Published with MATLABĀ® R2018a