Skip to content

x1y2z/perfect-competition-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perfect Competition Simulator

An interactive simulator that visualizes firms' behaviour in a perfectly competitive market. The project was created to help students better understand cost curves, market equilibrium, and firm entry/exit through dynamic graphs.

Instead of only studying static textbook graphs, this simulator allows users to experiment with parameters and observe how the market adjusts in real time.

Link: https://samp-mobile.shop/microecon

image

Project Idea

Many students struggle to understand how marginal cost, average costs, demand, and supply curves interact in perfect competition. This simulator solves that problem by drawing graphs and updating them dynamically when parameters change.

The demand curve is fixed: P=10-Q, while supply curve generates from quantity firm can produce (Marginal Costs count) multiplied by firms count.

Users can adjust costs and price parameters to see how the market responds.

Feautures

The simulator demonstrates several core microeconomic concepts:

  1. Firm cost curves: Marginal Cost, Average Total Cost, Average Variable Cost, Average Fixed Cost
  2. Profit maximization point and how much profit the firm gains
  3. Market equillibrium: demand and supply curves intersection point
  4. Consumer and Producer surplus visualization

Technologies

  1. HTML - structure
  2. Javascript - logic
  3. CSS - style
  4. Charts.js - graphs

Installation

Clone the repository: git clone https://github.com/x1y2z/perfect-competition-simulator.git Open index.html with your browser

Feauture improvements

  1. Monopoly simulator
  2. Oligopoly simulator
  3. Tax and subsidy simulations
  4. Deadweight loss visualization

Author

Gor Grigoryan