Skip to content

Commit

Permalink
Merge pull request #7 from JuliaPOMDP/pomdptools_ci_updates
Browse files Browse the repository at this point in the history
POMDPTools and CI Updates
  • Loading branch information
dylan-asmar authored Dec 18, 2023
2 parents c6cb9a9 + cd6449b commit 6dacfb9
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 245 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
name: CI

on: [push, pull_request]

on:
push:
branches:
- master
tags: '*'
pull_request:
jobs:
test:
runs-on: ubuntu-latest

name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- "1"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1'
arch: x64
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Manifest.toml
.vscode
**/*.pomdpx
**/*.out
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name = "BeliefGridValueIteration"
uuid = "d6851e30-d4b8-11e9-06de-0b345e2a813d"
version = "0.1.1"
version = "0.1.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
POMDPLinter = "f3bd98c0-eb40-45e2-9eb1-f2763262d755"
POMDPModelTools = "08074719-1b2a-587c-a292-00f91cc44415"
POMDPTools = "7588e00f-9cae-40de-98dc-e0c70c48cdd7"
POMDPs = "a93abf59-7444-517b-a68a-c42f96afdd7d"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
POMDPs = "0.8, 0.9"
POMDPLinter = "0.1"
POMDPModelTools = "0.3"
POMDPs = "0.9"
POMDPTools = "0.1"
Parameters = "0.12"
ProgressMeter = "1"
julia = "1"
Expand Down
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
# BeliefGridValueIteration

[![Build Status](https://travis-ci.org/JuliaPOMDP/BeliefGridValueIteration.jl.svg?branch=master)](https://travis-ci.org/JuliaPOMDP/BeliefGridValueIteration.jl)
[![codecov](https://codecov.io/gh/JuliaPOMDP/BeliefGridValueIteration.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaPOMDP/BeliefGridValueIteration.jl)
[![Coverage Status](https://coveralls.io/repos/JuliaPOMDP/BeliefGridValueIteration.jl/badge.svg)](https://coveralls.io/r/JuliaPOMDP/BeliefGridValueIteration.jl)
[![CI](https://github.com/JuliaPOMDP/BeliefGridValueIteration.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/JuliaPOMDP/BeliefGridValueIteration.jl/actions/workflows/CI.yml)
[![codecov.io](http://codecov.io/github/JuliaPOMDP/BeliefGridValueIteration.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaPOMDP/BeliefGridValueIteration.jl?branch=master)

An offline POMDP solver from "Computationally Feasible Bounds for Partially Observed Markov Decision Processes" (1991), by W. S. Lovejoy.
It computes an upper bound on the value function by performing value iteration on a discretized belief space.

## Installation

Start Julia and make sure you have the JuliaPOMDP registry:
Install using the standard package manager:

```julia
import POMDPs
POMDPs.add_registry()
using Pkg
Pkg.add("BeliefGridValueIteration")
```

Then install using the standard package manager:

```julia
using Pkg; Pkg.add("BeliefGridValueIteration")
```


## Usage

```julia
Expand Down
2 changes: 1 addition & 1 deletion src/BeliefGridValueIteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using Printf
using Parameters
using POMDPs
using POMDPLinter
using POMDPModelTools
using POMDPTools
using ProgressMeter

export
Expand Down
4 changes: 2 additions & 2 deletions test/lovejoy_serial.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# A non vectorized version of the algorithm
using LinearAlgebra
using POMDPs
using POMDPModelTools
using POMDPTools

function freudenthal_vertices!(V, v, i)
n = length(v)
Expand Down Expand Up @@ -159,4 +159,4 @@ function lovejoy_upper_bound(pomdp, m, ϵ, k_max)
end
end
return (U,π)
end
end
188 changes: 0 additions & 188 deletions test/model.pomdpx

This file was deleted.

9 changes: 0 additions & 9 deletions test/policy.out

This file was deleted.

2 comments on commit 6dacfb9

@dylan-asmar
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/97367

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.2 -m "<description of version>" 6dacfb94b92d206b55ad7502e2feb9788a9fdd43
git push origin v0.1.2

Please sign in to comment.