{"id":37607765,"url":"https://github.com/thiagopbueno/mdp-problog","last_synced_at":"2026-01-16T10:13:58.922Z","repository":{"id":57440462,"uuid":"56775052","full_name":"thiagopbueno/mdp-problog","owner":"thiagopbueno","description":"MDP-ProbLog is a framework to represent and solve (infinite-horizon) MDPs specified by probabilistic logic programming.","archived":false,"fork":false,"pushed_at":"2023-01-19T16:33:48.000Z","size":649,"stargazers_count":9,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T18:45:04.869Z","etag":null,"topics":["logic-programming","markov-decision-processes","mdp","planning","probabilistic-programming","problog"],"latest_commit_sha":null,"homepage":"http://pythonhosted.org/mdpproblog/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thiagopbueno.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-21T13:14:28.000Z","updated_at":"2025-03-31T22:17:40.000Z","dependencies_parsed_at":"2023-02-11T10:00:49.995Z","dependency_job_id":null,"html_url":"https://github.com/thiagopbueno/mdp-problog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thiagopbueno/mdp-problog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagopbueno%2Fmdp-problog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagopbueno%2Fmdp-problog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagopbueno%2Fmdp-problog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagopbueno%2Fmdp-problog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagopbueno","download_url":"https://codeload.github.com/thiagopbueno/mdp-problog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagopbueno%2Fmdp-problog/sbom","scorecard":{"id":880843,"data":{"date":"2025-08-11","repo":{"name":"github.com/thiagopbueno/mdp-problog","commit":"ceffe9b57c751a72dac3cc27c8e031440348a5a7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-24T08:08:17.485Z","repository_id":57440462,"created_at":"2025-08-24T08:08:17.485Z","updated_at":"2025-08-24T08:08:17.485Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logic-programming","markov-decision-processes","mdp","planning","probabilistic-programming","problog"],"created_at":"2026-01-16T10:13:58.847Z","updated_at":"2026-01-16T10:13:58.907Z","avatar_url":"https://github.com/thiagopbueno.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"MDP-ProbLog\n===========\n\n    MDP-ProbLog is a Python3 framework to represent and solve (infinite-horizon)\n    MDPs using Probabilistic Logic Programming.\n\nInstall\n-------\n\nIt is required to have Python3 installed.\n\n::\n\n    $ pip3 install mdpproblog\n\nUsage\n-----\n\n::\n\n    $ mdp-problog --help\n    usage: mdp-problog {list, show, simulate, solve} [-m DOMAIN INSTANCE] [OPTIONS]\n\n    MDP-ProbLog is a Python3 framework to represent and solve Markovian Decision\n    Processes by Probabilistic Logic Programming. This project is free software.\n    Please check the documentation at http://pythonhosted.org/mdpproblog/.\n\n    positional arguments:\n      {list,show,solve,simulate}\n                            available commands: list examples, show and solve\n                            models or simulate optimal policy\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -m MODEL MODEL, --model MODEL MODEL\n                            list of domain and instance files\n      -x EXAMPLE, --example EXAMPLE\n                            select model from examples\n      -g GAMMA, --gamma GAMMA\n                            discount factor (default=0.9)\n      -e EPSILON, --epsilon EPSILON\n                            maximum error (default=0.1)\n      -t TRIALS, --trials TRIALS\n                            number of trials (default=100)\n      -z HORIZON, --horizon HORIZON\n                            simulation horizon (default=30)\n\nInput\n-----\n\nDomain specification for the sysadmin planning problem\n(models/sysadmin/domain.pl).\n\n.. code:: prolog\n\n\n    % Network topology properties\n    accTotal([],A,A).\n    accTotal([_|T],A,X) :- B is A+1, accTotal(T,B,X).\n    total(L,T) :- accTotal(L,0,T).\n    total_connected(C,T) :- connected(C,L),\n                            total(L,T).\n\n    accAlive([],A,A).\n    accAlive([H|T],A,X) :- running(H,0), B is A+1, accAlive(T,B,X).\n    accAlive([H|T],A,X) :- not(running(H,0)), B is A, accAlive(T,B,X).\n    alive(L,A) :- accAlive(L,0,A).\n    total_running(C,R) :- connected(C,L),\n                          alive(L,R).\n\n    % State fluents\n    state_fluent(running(C)) :- computer(C).\n\n    % Actions\n    action(reboot(C)) :- computer(C).\n    action(reboot(none)).\n\n    % Transition model\n    1.00::running(C,1) :- reboot(C).\n    0.05::running(C,1) :- not(reboot(C)), not(running(C,0)).\n    P::running(C,1)    :- not(reboot(C)), running(C,0),\n                          total_connected(C,T), total_running(C,R), P is 0.45+0.50*R/T.\n\n    % Utility attributes\n\n    % costs\n    utility(reboot(C), -0.75) :- computer(C).\n    utility(reboot(none), 0.00).\n\n    % rewards\n    utility(running(C,0),  1.00) :- computer(C).\n\nExample\n-------\n\n::\n\n    $ mdp-problog simulate -x sysadmin1\n\n    Value(running(c1,0)=0, running(c2,0)=0, running(c3,0)=0) = 16.829\n    Value(running(c1,0)=1, running(c2,0)=0, running(c3,0)=0) = 19.171\n    Value(running(c1,0)=0, running(c2,0)=1, running(c3,0)=0) = 19.205\n    Value(running(c1,0)=1, running(c2,0)=1, running(c3,0)=0) = 23.028\n    Value(running(c1,0)=0, running(c2,0)=0, running(c3,0)=1) = 19.206\n    Value(running(c1,0)=1, running(c2,0)=0, running(c3,0)=1) = 23.029\n    Value(running(c1,0)=0, running(c2,0)=1, running(c3,0)=1) = 21.392\n    Value(running(c1,0)=1, running(c2,0)=1, running(c3,0)=1) = 25.607\n\n    Policy(running(c1,0)=0, running(c2,0)=0, running(c3,0)=0) = reboot(c1)\n    Policy(running(c1,0)=1, running(c2,0)=0, running(c3,0)=0) = reboot(c3)\n    Policy(running(c1,0)=0, running(c2,0)=1, running(c3,0)=0) = reboot(c1)\n    Policy(running(c1,0)=1, running(c2,0)=1, running(c3,0)=0) = reboot(c3)\n    Policy(running(c1,0)=0, running(c2,0)=0, running(c3,0)=1) = reboot(c1)\n    Policy(running(c1,0)=1, running(c2,0)=0, running(c3,0)=1) = reboot(c2)\n    Policy(running(c1,0)=0, running(c2,0)=1, running(c3,0)=1) = reboot(c1)\n    Policy(running(c1,0)=1, running(c2,0)=1, running(c3,0)=1) = reboot(none)\n\n    \u003e\u003e Value iteration converged in 0.196sec after 40 iterations.\n    \u003e\u003e Average time per iteration = 0.005sec.\n\n    Expectation(running(c1,0)=0, running(c2,0)=0, running(c3,0)=0) = 16.733\n    Expectation(running(c1,0)=1, running(c2,0)=0, running(c3,0)=0) = 19.433\n    Expectation(running(c1,0)=0, running(c2,0)=1, running(c3,0)=0) = 19.108\n    Expectation(running(c1,0)=1, running(c2,0)=1, running(c3,0)=0) = 23.377\n    Expectation(running(c1,0)=0, running(c2,0)=0, running(c3,0)=1) = 19.546\n    Expectation(running(c1,0)=1, running(c2,0)=0, running(c3,0)=1) = 23.287\n    Expectation(running(c1,0)=0, running(c2,0)=1, running(c3,0)=1) = 21.785\n    Expectation(running(c1,0)=1, running(c2,0)=1, running(c3,0)=1) = 25.849\n\nLicense\n-------\n\nCopyright (c) 2016-2017 Thiago Pereira Bueno All Rights Reserved.\n\nMDPProbLog is free software: you can redistribute it and/or modify it\nunder the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or (at\nyour option) any later version.\n\nMDPProbLog is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser\nGeneral Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with MDPProbLog. If not, see http://www.gnu.org/licenses/.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagopbueno%2Fmdp-problog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagopbueno%2Fmdp-problog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagopbueno%2Fmdp-problog/lists"}