Source code for scml.scml2020.agents.bcse

from negmas import LinearUtilityFunction

from .indneg import IndependentNegotiationsAgent

__all__ = ["BuyCheapSellExpensiveAgent"]


[docs]class BuyCheapSellExpensiveAgent(IndependentNegotiationsAgent): """An agent that tries to buy cheap and sell expensive but does not care about production scheduling."""
[docs] def create_ufun(self, is_seller: bool, issues=None, outcomes=None): if is_seller: return LinearUtilityFunction((1, 1, 10)) return LinearUtilityFunction((1, -1, -10))