{"id":22736590,"url":"https://github.com/fredwangwang/linear-programming-example","last_synced_at":"2025-03-30T02:44:09.360Z","repository":{"id":129385433,"uuid":"315524701","full_name":"fredwangwang/linear-programming-example","owner":"fredwangwang","description":"example problems to get started with LP","archived":false,"fork":false,"pushed_at":"2020-11-24T06:16:43.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T05:22:52.474Z","etag":null,"topics":["linear-programming","lp","nash-equilibrium","rock-paper-scissors"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredwangwang.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-24T05:08:38.000Z","updated_at":"2021-07-20T06:58:15.000Z","dependencies_parsed_at":"2023-03-24T20:01:46.334Z","dependency_job_id":null,"html_url":"https://github.com/fredwangwang/linear-programming-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Flinear-programming-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Flinear-programming-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Flinear-programming-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredwangwang%2Flinear-programming-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredwangwang","download_url":"https://codeload.github.com/fredwangwang/linear-programming-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269911,"owners_count":20750319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["linear-programming","lp","nash-equilibrium","rock-paper-scissors"],"created_at":"2024-12-10T21:27:50.988Z","updated_at":"2025-03-30T02:44:09.336Z","avatar_url":"https://github.com/fredwangwang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LP example\n\nthis shows solving some sample linear programming problems, including:\n\n- revenue maximization\n- rock paper scissors nash equilibrium using maxmin\n\n\n\npython3 main.py\n\n```\nnormal vs explicit z:\nsol: \n[ 5666.66666667 11333.33333333  3000.        ]\n[ 5666.66666667 11333.33333333  3000.        ]\n\nobj: \n71666.66666666667\n71666.66666666667\n\nrock paper scissors solution using cvxopt\nexpected value of the game:  0.0\nbest stragegy:  [0.33333333 0.33333333 0.33333333]\n\nrock paper scissors solution using cvxpy\nexpected value of the game:  0.0\nbest stragegy:  [0.33333333 0.33333333 0.33333333]\nrock paper scissors solution using cvxpy Matrix\nexpected value of the game:  0.0\nbest stragegy:  [0.33333333 0.33333333 0.33333333]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Flinear-programming-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredwangwang%2Flinear-programming-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredwangwang%2Flinear-programming-example/lists"}