water-market
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.9%) to scientific vocabulary
Keywords
Repository
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Name
ABM-RBB Water Market
Purpose
This package solves a market for a 'lumpy' commodity such as water.
Narrative Documentation
In agricultural systems, the marginal value of additional water supply may vary unevenly. For instance, a farm with more than enough water to grow wheat but not enough water to grow sugarcane might have a low marginal value for a small additional amount of water (since they can not use it to their advantage) but a high marginal value for a larger amount of water (if it enables them to transition to sugarcane). At the same time, they may be quite interested in selling water. This can be a difficult market problem to resolve, as agents have the potential to participate in the market in very different ways, depending on what other offers are available.
If the willingness of each farmer to participate in a market can be evaluated at several different points, then the overall market can be solved using solvers for the knapsack problem, which find the most valued set of elements that add to a given weight constraint.
Reference Implementation and Use Cases
This package includes the following implementation in MATLAB:
- testScript.m: An outer script to generate a test dataset and call the market algorithm
- makeTrades: The main function for the solution of the market
- Farm: An object class for farms that stores the basic properties needed to participate in the market
- knapsack: A solver for the 0-1 knapsack problem written by Petter Strandmark and available at http://www.mathworks.com/matlabcentral/fileexchange/22783-0-1-knapsack/content/knapsack.m
Inputs and Outputs
This RBB operates on a list of farm objects which have bids and offers as attributes:
farmList : A 1xN array of FARM objects, each with stored
attributes of:
marketID - scalar, market in which farm sells%
wealth - scalar, farm capital
tradedCommodity - scalar, farm-owned commodity
bids - Mx3 list of bids {ID, size, value}
offers - Mx3 list of offers {ID, size, value}
The RBB returns a list of transactions made within the market opportunities described by the bids and offers
Relationship to other RBBs
This RBB was previously shared in an earlier RBB campaign, archived at http://dx.doi.org/10.5281/zenodo.29895
Keywords
MATLAB, water market
Software Citation and FAIR4RS Principles
Bell, A. (2015) Water Market RBB. http://dx.doi.org/10.5281/zenodo.29895
Be sure to update the citation manually if you go this route and the citation changes.
INSTRUCTIONS
To test this package, copy all files to a folder, preserving inner directory structure, and run testScript. This script returns farmList, an array of farms that have participated in the market, and transactionList, a list of transactions in the form [buyerID sellerID saleSize buyerWTP sellerWTA].
BENCHMARKS
Verify that for all transactions in transactionList:
- if the transaction is to a single seller, the buyer's WTP is always greater than the seller's WTA and
- if the transaction is split across multiple sellers, the cumulative WTP
(size * WTP)is greater than the sum of all sellers'size * WTA.
Owner
- Name: Andrew Bell
- Login: earth-andrew
- Kind: user
- Location: Boston, MA, USA
- Company: Cornell University
- Website: andrewreidbell.com
- Twitter: earth_andrew
- Repositories: 1
- Profile: https://github.com/earth-andrew
Associate professor of Global Development at Cornell University. Agent-based models, behavioral experiments, smartphone-based data collection.
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: ABM-RBB Water Market
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Andrew
family-names: Bell
email: bellar@bu.edu
affiliation: Boston University
orcid: 'https://orcid.org/0000-0002-1164-312X'
license: MIT
version: 1.0.0
date-released: '2015-07-07'