computeOptimalPrice: Computes the profit-maximizing price

View source: R/Computation.r

computeOptimalPriceR Documentation

Computes the profit-maximizing price

Description

Computes the profit-maximizing for a given Word-of-Mouth campaign.

Usage

computeOptimalPrice(campaign)

Arguments

campaign

Word-of-Mouth campaign as instance of class WoMCampaign.

Value

Profit-maximizing price in [0; 1] where 0 is the lowest possible and 1 is the highest possible price.

Author(s)

Michael Scholz michael.scholz@th-deg.de

Thomas Woehner Thomas.Woehner@eah-jena.de

Ralf Peters ralf.peters@wiwi.uni-halle.de

See Also

computeDemand computeProfit computeConsumerSurplus

Examples


network <- new("WoMNetwork", size = 1000, avgConnections = 5)
campaign <- new("WoMCampaign", network = network, seedingSize = 10, forwardProbability = 0.2)
price <- computeOptimalPrice(campaign)
profit <- computeProfit(campaign, price)
print(price)
print(profit)


WordOfMouth documentation built on June 8, 2025, 1:47 p.m.