Commercial bank model

Commercial bank model preview image

1 collaborator

Default-person Haowen Li (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.3.0 • Viewed 255 times • Downloaded 12 times • Run 0 times
Download the 'Commercial bank model' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


WHAT IS IT?

(a general understanding of what the model is trying to show or explain)

HOW IT WORKS

(what rules the agents use to create the overall behavior of the model)

HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals [average-interest-rate]

breed [banks-with-capital bank-with-capital]
banks-with-capital-own [interest-rate macroprudential-policy-level]

breed [banks-without-capital bank-without-capital]
banks-without-capital-own [interest-rate macroprudential-policy-level]

to setup
  clear-all
  set average-interest-rate 2 ; Set a low average interest rate to represent the low-interest rate environment

  ; Create banks with capital based on the slider value
  create-banks-with-capital num-banks-with-capital [
    setxy random-xcor random-ycor
    set interest-rate random-float 5 ; random interest rate between 0% to 5% (lower for banks with capital)
    set macroprudential-policy-level calculate-policy-level interest-rate false
    set color green ; color to represent banks with capital
  ]

  ; Create banks without capital based on the slider value
  create-banks-without-capital num-banks-without-capital [
    setxy random-xcor random-ycor
    set interest-rate 5 + random-float 5 ; random interest rate between 5% to 10% (higher for banks without capital)
    set macroprudential-policy-level calculate-policy-level interest-rate true
    set color red ; color to represent banks without capital
  ]

  reset-ticks
end 

to go
  ask banks-with-capital [
    ; Example behavior: Banks with capital might try to move toward the top of the world
    set heading 0 ; Point upwards
    fd 0.5
  ]

  ask banks-without-capital [
    ; Example behavior: Banks without capital might try to move toward the bottom of the world
    set heading 180 ; Point downwards
    fd 0.5
  ]

  tick
end 

to-report calculate-policy-level [rate no-capital?]
  ; Assuming a linear relationship between interest rate and macroprudential policy level
  ; If no capital, the policy level is higher
  if no-capital? [
    report 20 - rate
  ]
  report 10 - rate
end 

There is only one version of this model, created almost 2 years ago by Haowen Li.

Attached files

File Type Description Last updated
Commercial bank model.png preview Preview for 'Commercial bank model' almost 2 years ago, by Haowen Li Download

This model does not have any ancestors.

This model does not have any descendants.