{"id":27870696,"url":"https://github.com/nariaki3551/pulp2localsolver","last_synced_at":"2025-06-12T03:36:42.398Z","repository":{"id":154192173,"uuid":"629994396","full_name":"nariaki3551/pulp2localsolver","owner":"nariaki3551","description":"A PuLP to LocalSolver converter","archived":false,"fork":false,"pushed_at":"2023-04-19T13:00:19.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T23:25:16.367Z","etag":null,"topics":["localsolver","optimization","pulp"],"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/nariaki3551.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,"zenodo":null}},"created_at":"2023-04-19T12:56:48.000Z","updated_at":"2023-04-19T13:01:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ea61aaa-ed6c-4e5f-ba21-814c06c646b9","html_url":"https://github.com/nariaki3551/pulp2localsolver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nariaki3551/pulp2localsolver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nariaki3551%2Fpulp2localsolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nariaki3551%2Fpulp2localsolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nariaki3551%2Fpulp2localsolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nariaki3551%2Fpulp2localsolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nariaki3551","download_url":"https://codeload.github.com/nariaki3551/pulp2localsolver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nariaki3551%2Fpulp2localsolver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259390477,"owners_count":22850239,"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":["localsolver","optimization","pulp"],"created_at":"2025-05-04T23:25:06.195Z","updated_at":"2025-06-12T03:36:42.391Z","avatar_url":"https://github.com/nariaki3551.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pulp2localsolver\n\nA PuLP to LocalSolver converter\n\n## Install\n\n```\ngit clone https://github.com/nariaki3551/pulp2localsolver.git\ncd pulp2localsolver\npip install .\n```\n\n## Setting\n\nYou have to install Python interface of LocalSolver.\nPlease read this document https://www.localsolver.com/docs/last/installation/pythonsetup.html ,\nand install localsolver python package.\n\n## Usage\n\n\n```python\nimport pulp\n\n# create pulp LpProblem\nprob = pulp.LpProblem(\"sample\")\n\n# define variables\nx = pulp.LpVariable(\"x\", lowBound=0, upBound=10)\ny = pulp.LpVariable(\"y\", lowBound=0, upBound=10)\nz = pulp.LpVariable(\"z\", cat=\"Binary\")\n\n# set objective\nprob += x + y + z + 1\n\n# set constraints\nprob += 3 * x + 5 * y \u003c= 15\nprob += 2 * x + y \u003e= 4\nprob += x - y == 1\n\nprint(prob)\n\n\n# solve problem using LocalSolver\n#   and decode solution to pulp variable objects\nimport pulp2localsolver\n\npulp2localsolver.localsolver_solve(prob)\n\nprint(\"Result\")\nprint(\"x\", x.value())\nprint(\"y\", y.value())\nprint(\"z\", z.value())\nprint(\"obj\", prob.objective.value())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnariaki3551%2Fpulp2localsolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnariaki3551%2Fpulp2localsolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnariaki3551%2Fpulp2localsolver/lists"}