Skip to content

Add removeAction again #37

@relund

Description

@relund

Modify the MDP: remove the maintain action in the states of stage 1

removeAction(mdp, sId=1, iA=0) # remove action 0 at the state with sId=1
removeAction(mdp, sId=2, iA=0)

Perform value iteration on the modified MDP

valueIte(mdp, w, termValues=scrapValues)
getPolicy(mdp) # optimal policy for each sId

resetActions(mdp) # reset the MDP such that all actions are used

Modify the weight of action 'buy'

setActionWeight(mdp, w=-50, sId=0, iA=0, wLbl=w)

Perform value iteration on the modified MDP

valueIte(mdp, w, termValues=scrapValues)
getPolicy(mdp) # optimal policy for each sId

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions