Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic gravity model, e.g. as si_gravity() #26

Open
Robinlovelace opened this issue Aug 1, 2022 · 5 comments
Open

Implement basic gravity model, e.g. as si_gravity() #26

Robinlovelace opened this issue Aug 1, 2022 · 5 comments

Comments

@Robinlovelace
Copy link
Owner

No description provided.

@R-icntay
Copy link
Contributor

R-icntay commented Aug 2, 2022

Happy to help!

Just to run this with @Robinlovelace , @adamdennett

This is what we would be implementing, right? The total unconstrained model?

$T_{ij} = k V_i^\mu W_j^\alpha d_{ij}^-\beta$

@Robinlovelace
Copy link
Owner Author

Yes, that looks like the one!

$\mu \alpha \beta$

Can be set to 1 by default I think so it would be something like...

@Robinlovelace
Copy link
Owner Author

si_gravity = function(v, w, k = 1, mu = 1, alpha = 1, beta = 1) {
  # ...
}

Does that make sense? I may well be missing something!

@adamdennett
Copy link
Collaborator

Yeah, that will do for a basic model, although set beta to -1 rather than 1 in any initial model. K can also be calculated simply as all flows in the system / the rest of the model, but 1 as a starter is fine

@Robinlovelace
Copy link
Owner Author

Thanks Adam for this key input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants