fetchai / agents-tac

Competition and Agent Frameworks for the Trading Agents Competition
https://fetchai.github.io/agents-tac
Apache License 2.0
28 stars 8 forks source link

Feat/utility func change #301

Closed DavidMinarsch closed 5 years ago

DavidMinarsch commented 5 years ago

Proposed changes

This PR introduces a change to the utility function and therefore also to the competitive equilibrium calculation.

Previously, the utility function component for good j had to be capped if the quantity of the good j was 0. Now this is no longer necessary as we shift the quantities such that the value in the natural logarithm is always positive. The default shift is QUANTITY_SHIFT = 1. This change does not affect the trading behaviour of the agents.

Fixes

This addresses the feature request #106 .

Types of changes

What types of changes does your code introduce to agents-tac? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply.

Further comments

na