Skip to main content

Markov Decision Process

Markov Decision Process

  • Markov Decision Process

Installation

pip install md-pro

Usage

    ##################
    ### Parameters ###
    ##################
    parser = argparse.ArgumentParser()
    parser.add_argument('--sample_time', '-Ts', type=float, help='Ts=0.1',
                        default='0.1', required=False)
    parser.add_argument('--gamma', '-gam', type=float, help='gamma=0.9',
                        default='0.9', required=False)
    parser.add_argument('--x_grid', '-xgr', type=int, help='x_grid=5',
                        default='8', required=False)
    parser.add_argument('--y_grid', '-ygr', type=int, help='y_grid=5',
                        default='5', required=False)
    parser.add_argument('--n_optimal', '-nopt', type=int, help='n_optimal=5',
                        default='5', required=False)
    args = parser.parse_args()
    params = vars(args)
    ####################################################
    ### Challenge with Markov Decision Process (MDP) ###
    ####################################################
    #start point
    strt_pnt='0'
    # points
    P=get_meshgrid_points(params)
    # Topology
    T, S = get_simple_topology_for_regular_grid(params, P)
    # rewards
    R = {'35': 100}
    mdp_challenge = {'S': S, 'R': R, 'T': T, 'P': P}

    dict_mdp=start_mdp(params, mdp_challenge)
    reach_set=reach_n_steps(strt_pnt, mdp_challenge, dict_mdp, params, steps=8)
    optimal_traj=get_trajectory(strt_pnt, dict_mdp, reach_set)
    plot_the_result(dict_mdp, mdp_challenge)

... should produce:

Citation

Please cite following document if you use this python package:

TODO

Image source: https://www.pexels.com/photo/photo-of-black-and-beige-wooden-chess-pieces-with-white-background-1083355/

Metadata

Release files for md-pro 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for md-pro 0.0.13
File Size Uploaded Provenance Actions
md_pro-0.0.13.tar.gz 10.6 kB Without provenance Details for md_pro-0.0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for md-pro 0.0.13
File Interpreter ABI Platform Actions
md_pro-0.0.13-py3-none-any.whl Python 3 none any Details for md_pro-0.0.13-py3-none-any.whl

Total release size: 37.1 kB

Release files / md_pro-0.0.13.tar.gz

Download URL md_pro-0.0.13.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
22a269fe8705c9ed27ddb93d609df386ae1d58fd0d2683023129b8b633c867c8
BLAKE2b-256 checksum
How to use checksums
98cc1f89f03f9a8dbe0f19549d8dd6236bbb146d19fede3c597ea406dba39f01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

Release files / md_pro-0.0.13-py3-none-any.whl

Download URL md_pro-0.0.13-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fa3ccefaeaac5c2ecff5b55072007ecea9c5cc117c852081f746a40665a6300
BLAKE2b-256 checksum
How to use checksums
2a21ad0ffce485ae4a1d51615292f729c8edb4f6c761184e415ab53a9397cc8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

Security for md-pro 0.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page