Financial Support Network - Simplified

No preview image

1 collaborator

Default-person Nicolas Fuentes (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.4.0 • Viewed 68 times • Downloaded 2 times • Run 0 times
Download the 'Financial Support Network - Simplified' 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

undirected-link-breed [soc-links soc-link] ; amistad
undirected-link-breed [fin-links fin-link] ; los que referencia para financiar

breed [entreps entrep] ; emprendedores
breed [vcs vc]


globals [

  funded
]


entreps-own [
funded?; financiado o no
funds; dinero disponible
]

to setup
  clear-all
  setup-entreps
  setup-globals
  ask patches [set pcolor white]
  reset-ticks
end 

to setup-globals

  set funded count entreps with [funded? = True]
end 

to setup-entreps

  ask patch 0 0 [
   sprout-entreps 100 [
    set shape "person"
    set size 3
    set color black
    set funds random-poisson 200
    set funded? False
    fd 40

    ;create-fin-link-with one-of vcs [set color green]
  ]]


 ; ask soc-links [hide-link]


  create-vcs 3 [
  set color green
  set shape "circle"
  set size 6
  ; separarlos manualmente alrededor del centro
  if who = 0 [ setxy 20 0 ]
  if who = 1 [ setxy -10 17 ]
  if who = 2 [ setxy -10 -17 ]

  ]
end 

to go
if ticks = 250 [stop]
F-function
G-function
life
tick
end 

to F-function
  ask turtles with [shape = "person"] [
    let otros-entrepreneurs other turtles
    let conex 0
    while [conex < conections] [
      let target one-of otros-entrepreneurs with [not soc-link-neighbor? myself]
      if target != nobody [
        if random-float 1 < 0.01 [ create-soc-link-with target]
      set conex conex + 1

      ]
    ]
  ]
end 

to G-function

  ask entreps [

    let conoce-vc any? soc-link-neighbors with [breed = vcs]
    if conoce-vc and  not any? fin-links with [breed = vcs] [
      if random-float 1.0 < 0.3 [
        create-fin-link-with one-of vcs [
          set color green

          set funded funded + 1
        ]
        set color green
        set funded?  True
        set funds funds + 100
      ]
    ]
  ]
end 

to life
  ask entreps [
    if funds > 0 [set funds funds - 1]
    if (funds = 1 and funded? = True) [
                   set funded? False

                   set color black

                   ask my-fin-links [die]

                 ]
  ]
end 











There is only one version of this model, created 2 months ago by Nicolas Fuentes.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.