Visit our main site
ResearchBlogDocs
Skip to Content
hCoreRetired
Creating Simulations
Introduction
Agents
Behaviors
Messages
Globals
Datasets
Libraries
Collaboration
Design Considerations
Running Simulations
Single Runs
Experiments
Performance
Debugging Errors
Cloud Execution
Tutorials
Hello, HASH!
Building Process Models
Financial Toolbox
Create a Simulation Dashboard
Extending An Epidemic Model
Building a Simple Hotelling Model in 2D
Environment Setup
Agent Initialization
Query Customers
Customer Reply
Business Collect and Update
Final Code
Extending the Model
Switching to HASH
IDE Usage
Shortcuts
Troubleshooting Crashes
System Requirements
Memory Management
API
hEngine
  1. Tutorials

Building a Simple Hotelling Model in 2D


This tutorial simulates businesses competing for customers based on location and price. This extends the principles of the Hotelling model which analyzed the optimal locations of businesses along a one-dimensional line. We will use HASH to build it in a 2D space.

Two agents competing for customers by moving around a "market"

This model demonstrates some basic principles of spatial and price competition.

PreviousCreate An ICU
NextEnvironment Setup

Join our community of HASH developers

Explore open rolesCareers
Star on GitHubGitHub1.7k
Get in touchContact

Open-source resources and tools for developers who want to build the future of decision-making with HASH

Legal

Privacy

Security

Learn

Dev Blog

Dev Docs

Projects

HASH

hgres

SemType

Petrinaut

View libraries

Get Involved

Start using HASH

Contribute

Careers

Contact Us

Legal

Privacy

Security