Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Add UBI Component #19

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add UBI Component #19

wants to merge 8 commits into from

Commits on Feb 12, 2021

  1. Initialize UBI component

    Create a UBI component that distributions a constant amount of coin
    to each mobile agent every period, drawing from the planner agent's
    coin endowment (which currently can run into the negatives).
    sarahlc888 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    84d6b67 View commit details
    Browse the repository at this point in the history
  2. Add action space to UBI component

    Allow the planner agent to determine the UBI payment amount.
    
    In more detail:
    Convert UBI to have discretized amounts that the planner can choose from, define get_n_actions() to allow the planner’s actions to determine UBI payment amount, and define set_new_period_amt_model() to update the UBI payment amount each period.
    sarahlc888 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    c304e1a View commit details
    Browse the repository at this point in the history
  3. Add observations in UBI component

    Allow the planner and mobile agents to see the position in the UBI cycle
    as well as the UBI amount and previous UBI amount.
    
    Track the UBI payment amount of the previous step to use in observations.
    
    Also add additional reset steps (for correctness).
    sarahlc888 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    183d2bf View commit details
    Browse the repository at this point in the history
  4. Add action mask and logging for UBI

    Restrict planner actions so that the agent can only act/modify UBI
    on the appropriate day of the cycle.
    
    Also add logging that shows the size of UBI payments used at each
    time step.
    sarahlc888 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    018bdd2 View commit details
    Browse the repository at this point in the history
  5. Initialize SimpleRevenue

    Create a version of PeriodicBracketTax that does not do lumpsum
    redistribution and instead adds revenue to the planner agent's
    coin endowment.
    sarahlc888 committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    1a38355 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2021

  1. Fix tiny bugs

    Fix bugs after testing UBI and SimpleRevenue components. Both appear
    to run and seem in working order.
    sarahlc888 committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    fc28911 View commit details
    Browse the repository at this point in the history
  2. Mask UBI planner actions

    Require planner to choose a UBI payment amount that its current
    coin endowment can pay out without becoming negative.
    
    Also edit the NO-OP operation so that it sets UBI to 0.
    (Otherwise, maintaining a UBI rate may drive planner coin
    into the negatives.) This may change though.
    sarahlc888 committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    97f3860 View commit details
    Browse the repository at this point in the history
  3. Minor reformatting

    Reformatted using format_and_lint.sh.
    sarahlc888 committed Feb 19, 2021
    Configuration menu
    Copy the full SHA
    48b0376 View commit details
    Browse the repository at this point in the history