GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Zinoex/IntervalMDP.jl: GPU-accelerated value iteration for Interval Markov Decision Processes

BranchesTags
Open more actions menu

Latest commit

 

History

812 Commits
812 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github/workflows
.github/workflows
 
 
benchmark
benchmark
 
 
docs
docs
 
 
ext
ext
 
 
harness
harness
 
 
lean
lean
 
 
src
src
 
 
test
test
 
 
.JuliaFormatter.toml
.JuliaFormatter.toml
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Project.toml
Project.toml
 
 
README.md
README.md
 
 
codecov.yml
codecov.yml
 
 
harness.config.toml
harness.config.toml
 
 

Repository files navigation

IntervalMDP.jl - Interval Markov Decision Processes

Documentation Build Status Codecov

for modeling and verifying properties of various subclasses of factored Robust Markov Decision Processes (fRMDPs), in particular Interval Markov Decision Processes (IMDPs) and factored IMDPs (fIMDPs) via Value Iteration.

RMDPs are an extension of Markov Decision Processes (MDPs) that account for uncertainty in the transition probabilities, and the factored variant introduces state and action variables such that the transition model is a product of the transition models of the individual variables, allowing for more compact representations and efficient algorithms. This package focuses on different subclasses of fRMDPs for which value iteration can be performed efficiently including Interval Markov Chains (IMCs), IMDPs, orthogonally-decoupled IMDPs (odIMDPs), and fIMDPs.

The aim of this package is to provide a user-friendly interface to solve verification and control synthesis problems for fRMDPs with great efficiency, which includes methods for accelerating the computation using CUDA hardware, pre-allocation, and other optimization techniques.

Features

  • Value iteration over IMCs, IMDPs, odIMDPs, and fIMDPs.
  • Multithreaded CPU and CUDA-accelerated value iteration.
  • Dense and sparse matrix support.
  • Parametric probability types (Float64, Float32, Rational{BigInt}) for customizable precision. Note that Rational{BigInt} is not supported for CUDA acceleration.
  • Data loading and writing in formats by various tools (PRISM, bmdp-tool, IntervalMDP.jl)

Installation

This package requires Julia v1.9 or later. Refer to the official documentation on how to install it for your system.

To install IntervalMDP.jl, use the following command inside Julia's REPL:

julia> import Pkg; Pkg.add("IntervalMDP")

If you want to use the CUDA extension, you also need to install CUDA.jl:

julia> import Pkg; Pkg.add("CUDA")

Usage

Here is an example of how to use the package to solve a finite horizon reachability problem for an Interval Markov Chain (IMC) with 3 states and 1 initial state. The goal is to compute the maximum pessimistic probability of reaching state 3 within 10 time steps.

using IntervalMDP

# IMC
prob = IntervalAmbiguitySets(;
    lower = [
        0.0 0.5 0.0
        0.1 0.3 0.0
        0.2 0.1 1.0
    ],
    upper = [
        0.5 0.7 0.0
        0.6 0.5 0.0
        0.7 0.3 1.0
    ],
)

initial_states = [1]  # Initial states are optional
imc = IntervalMarkovChain(prob, initial_states)

target_set = [3]
prop = FiniteTimeReachability(target_set, 10)  # Time steps
spec = Specification(prop, Pessimistic, Maximize)
problem = VerificationProblem(imc, spec)

# Solve
V, k, residual = solve(problem)

See Usage for more information about different specifications, using sparse matrices, and CUDA.

Ecosystem

Building upon IntervalMDP.jl, we are designing an ecosystem of tools, which currently consists of:

  • IntervalMDPAbstractions.jl - constructing abstractions of stochastic dynamical systems to verify properties.

Copyright notice

Technische Universiteit Delft hereby disclaims all copyright interest in the program “IntervalMDP.jl” (GPU-accelerated value iteration for Interval Markov Decision Processes) written by the Frederik Baymler Mathiesen. Fred van Keulen, Dean of Mechanical Engineering.

© 2024, Frederik Baymler Mathiesen, HERALD Lab, TU Delft

About

GPU-accelerated value iteration for Interval Markov Decision Processes

www.baymler.com/IntervalMDP.jl/

Topics

formalimdp

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.