hpi-epic / pricewars-consumer

Consumer Component of the Price Wars Platform
MIT License
0 stars 4 forks source link

Scoring based consumer #14

Closed CarstenWalther closed 6 years ago

CarstenWalther commented 6 years ago

This consumer scores available offers according to the following formular: score = price_factor * price + quality_factor * quality The consumer buys the best offer (lowest score) if its score is below or equal to the willingness to buy.

The factors are random for each consumer/visit and are:

price_factor = Uniform(1.0, 1.0) // price factor is currently always 1.0
quality_factor = Uniform(0.0, 3.0)
willingness_to_buy = Uniform(20.0, 80.0)

This behavior is not active in the default configuration (only prefer_cheap is active).

I wanted to write some tests for this behavior but couldn't run the consumer tests. Some command recommendations from the internet did not work and the readme does not help either.

Bouncner commented 6 years ago

Looks good to me. Fingers crossed. ;)