https://github.com/xabbuh/brp-php
Collection of tools and algorithms for block relocation problems (BRPs)
https://github.com/xabbuh/brp-php
Last synced: 4 months ago
JSON representation
Collection of tools and algorithms for block relocation problems (BRPs)
- Host: GitHub
- URL: https://github.com/xabbuh/brp-php
- Owner: xabbuh
- License: mit
- Created: 2014-04-17T20:45:58.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-12T18:46:24.000Z (about 11 years ago)
- Last Synced: 2025-02-06T08:30:34.714Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 324 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Block Relocation Problem Solver
===============================[](https://scrutinizer-ci.com/g/xabbuh/brp-php/)
[](https://travis-ci.org/xabbuh/brp-php)
[](https://insight.sensiolabs.com/projects/8e20773b-3736-4a67-b8df-962238c98979)Getting Started
---------------Add ``xabbuh/block-relocation-problem`` to your ``composer.json`` file:
```json
{
"require": {
"xabbuh/block-relocation-problem": "~1.0@dev"
}
}
```and run ``php composer.phar update``.
Container Configuration
-----------------------Create a file containing your BRP configuration (e.g. ``configuration.json``):
```json
{
"stacks": [
[6, 7, 9],
[1, 3, 4],
[2, 8, 5]
]
}
```Solve the Problem
-----------------Solve the problem running the ``brp:configuration:solve`` command:
```bash
$ php vendor/bin/brp.php brp:configuration:solve --algorithm=la configuration.json
```