Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Allocation Functions

MARKETP(request[FIRST],priority[FIRST],size,width,supply) MARKET clearing Priority

Scroll Prev Top Next More

The MARKETP function is used in a two step process with the ALLOC P function.  You can get the same effect using the ALLOCATE BY PRIORITY function and this is recommended.  

MARKETP returns a priority to pass to ALLOC P so that total allocations of a scarce resource will exactly match the supply of this resource.  More detailed discussion on this and ALLOC P are contained in the Allocation section.

For a discussion of the arguments to MARKETP see the ALLOCATION BY PRIORITY function.  The same arguments are passed, except that MARKETP requires that Subscript Elements instead of Subscript Ranges be specified for request and priority. Normally the first Subscript Element in the Subscript range is specified.

Units: MARKETP(units, dimensionless, dimensionless, dimensionless, units) -> units

Example

Using the example for ALLOCATE BY PRIORITY we would replace that one equation with the following two equations:

mp = marketp( demand[US],priority[US],ELMCOUNT(country), 
               WIDTH, SUPPLY )
~dimensionless
~market priority |

delivered[counry] = alloc p( demand[country], priority[country],WIDTH, mp )

tons / month
~amount of supply delivered to a specific country |

Availability: Only Professional and DSS.

See also: ALLOC P, Allocation

Sample model: ALLOC P + MARKETP.mdl in FunctionExamples