INNER CODE UNIT · Python

act

ikatsov/tensor-house · supply-chain/world_of_supply/world_of_supply_environment.py:20

    def act(self, control):
        pass
    
@dataclass
class BalanceSheet:
    profit: int = 0
    loss: int = 0
        
    def total(self) -> int:
        return self.profit + self.loss
        
    def __add__(self, other):
        return BalanceSheet(self.profit + other.profit, self.loss + other.loss)
    
    def __sub__(self, other):
        return BalanceSheet(self.profit - other.profit, self.loss - other.loss)
    
    def __repr__(self):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…