set_resource_cost_use

Set the cost per use for a resource as a monetary value.

The cost for the use of a resource is as a one-time cost incurred every time that the resource is used by the activity and differs between the two resource types:

  • When an activity makes use of the consumable resource, the per use cost of this resource is incurred as a fixed monetary amount. 
  • When an activity makes use of the renewable resource, the per use cost of this resource is incurred as a variable monetary amount as this per use cost value is multiplied by the resource demand of this activity (i.e. its resource requirement and not is total work content).
Parameters: 
I/O Type Name Description
input integer ID resource ID
input float cost cost per use
Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource