Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xabbuh/brp-php
Collection of tools and algorithms for block relocation problems (BRPs)
https://github.com/xabbuh/brp-php
Last synced: 22 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-12T18:46:24.000Z (over 10 years ago)
- Last Synced: 2024-10-11T01:07:51.161Z (about 1 month 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
===============================[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/xabbuh/brp-php/badges/quality-score.png?s=959ebb6486f936bb55c48063342eb24890169357)](https://scrutinizer-ci.com/g/xabbuh/brp-php/)
[![Build Status](https://travis-ci.org/xabbuh/brp-php.svg)](https://travis-ci.org/xabbuh/brp-php)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/8e20773b-3736-4a67-b8df-962238c98979/mini.png)](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
```