{"id":28092647,"url":"https://github.com/makao/lpsolve","last_synced_at":"2025-05-13T13:26:00.040Z","repository":{"id":62522847,"uuid":"54316600","full_name":"makao/lpsolve","owner":"makao","description":"LPSolve extension as simple PHP library","archived":false,"fork":false,"pushed_at":"2016-03-20T12:45:55.000Z","size":7,"stargazers_count":11,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T18:39:24.391Z","etag":null,"topics":["constraint","linear","lpsolve","php","programming","simplex"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-20T12:35:08.000Z","updated_at":"2024-06-20T23:22:18.000Z","dependencies_parsed_at":"2022-11-02T13:46:43.579Z","dependency_job_id":null,"html_url":"https://github.com/makao/lpsolve","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/makao%2Flpsolve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makao%2Flpsolve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makao%2Flpsolve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makao%2Flpsolve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makao","download_url":"https://codeload.github.com/makao/lpsolve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253949084,"owners_count":21989087,"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":["constraint","linear","lpsolve","php","programming","simplex"],"created_at":"2025-05-13T13:25:59.522Z","updated_at":"2025-05-13T13:26:00.028Z","avatar_url":"https://github.com/makao.png","language":"PHP","readme":"# LPSolve\n[LPSolve](http://lpsolve.sourceforge.net) is a PHP extension for solving linear programming problems. This library provides a wrapper for standard lpsolve() function.\n\n## Installation\nRun composer\n```\ncomposer require makao/lpsolve\n```\nRequire autoloader\n```php\nrequire 'vendor/autoload.php'\n```\n\n## Usage\n```php\nuse makao\\LPSolve\\Constraint;\nuse makao\\LPSolve\\Problem;\nuse makao\\LPSolve\\Solver;\n\n// Define constraints\n$constraints = [\n    new Constraint([120, 210, 150.75], LE, 15000),\n    new Constraint([110, 30, 125], LE, 4000),\n    new Constraint([1, 1, 1], LE, 75)\n];\n\n// Or initialize them from string\n// $constraints = [\n//     Constraint::fromString('120x + 210y + 150.75z \u003c= 15000'),\n//     Constraint::fromString('110x + 30y + 125z \u003c= 4000'),\n//     Constraint::fromString('1x + 1y + 1z \u003c= 75')\n// ];\n\n// Define problem\n$problem = new Problem([143, 60, 195], $constraints);\n\n// Solve it!\n$solver = new Solver(Solver::MAX); // Can be either Solver::MIN for minimalization\n$solution = $solver-\u003esolve($problem);\n\nvar_dump($solution);\n```\n\n**Note:** Do not omit coefficient value when create constraint from string.\n\nThere are 3 examples provided in example.php.\n\nFor more information please visit: http://lpsolve.sourceforge.net\n\n## License\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakao%2Flpsolve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakao%2Flpsolve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakao%2Flpsolve/lists"}