Image

Crime Analysis

Build your own discrete event simulation framework in Python Part III
2 months ago

Build your own discrete event simulation framework in Python Part III

In┬áPart II, we added a queue and a PatrolCar class to our Python simulation to answer call events in our police patrol simulation. In this installment, we’ll add calls to …
Read More

Build your own discrete event simulation framework in Python Part II
2 months ago

Build your own discrete event simulation framework in Python Part II

In Part I, we learned about creating a simple discrete event simulation controller in Python, using a clock that iterated over a minute counter and translated this minute counter to …
Read More

Build your own discrete event simulation framework in Python Part I
2 months ago

Build your own discrete event simulation framework in Python Part I

The first question you might ask, is why the heck would you build your own simulation framework in Python? There’s a million of them, right?

I wouldn’t say a million. …
Read More

Excel to R Transhipment Problem Optimization Tutorial Part II
2 months ago

Excel to R Transhipment Problem Optimization Tutorial Part II

In this tutorial, I’ll finish the process of converting a simple Excel Transshipment problem that I wrote to minimize the traveling distance that a set of patrol cars would have …
Read More

Excel to R Transhipment Problem Optimization Tutorial Part I
3 months ago

Excel to R Transhipment Problem Optimization Tutorial Part I

In this tutorial I’m going to go through creating an optimization model in Excel. The next part of the tutorial will be scaling a small optimization program into a larger …
Read More

Crime Analysis Series: Manhattan Distance in R
4 months ago

Crime Analysis Series: Manhattan Distance in R

By  •  Crime Analysis

As you can see in the image embedded in this page, travel from downtown Phoenix to downtown Scottsdale involves several rectangular-like movements. Traveling in a city laid out in a …
Read More

Crime Analysis Series Calculating Great Circle Distance Between Two Points in R Using Haversine Formula
4 months ago

Crime Analysis Series Calculating Great Circle Distance Between Two Points in R Using Haversine Formula

By  •  Crime Analysis

I recently started working in crime analysis and started to need to use latitudes and longitudes and calculate the distances between them. For this calculation I used the Haversine formula …
Read More

Top