{"id":23155117,"url":"https://github.com/leoek/r-qap-optimization","last_synced_at":"2025-06-29T07:36:36.518Z","repository":{"id":42987585,"uuid":"185509631","full_name":"leoek/r-qap-optimization","owner":"leoek","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-13T22:11:48.000Z","size":814,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T16:49:05.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/leoek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-08T02:05:38.000Z","updated_at":"2021-11-08T14:44:48.000Z","dependencies_parsed_at":"2025-04-04T16:45:51.120Z","dependency_job_id":"c46370ac-31ac-4208-afa0-76b791af9036","html_url":"https://github.com/leoek/r-qap-optimization","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/leoek/r-qap-optimization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoek%2Fr-qap-optimization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoek%2Fr-qap-optimization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoek%2Fr-qap-optimization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoek%2Fr-qap-optimization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoek","download_url":"https://codeload.github.com/leoek/r-qap-optimization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoek%2Fr-qap-optimization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262558159,"owners_count":23328466,"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":[],"created_at":"2024-12-17T20:15:21.844Z","updated_at":"2025-06-29T07:36:36.470Z","avatar_url":"https://github.com/leoek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redundant Quadratic Assignment Problem Optimization\n\n## Usage\n\nAn `instanceType` must always be specified. The `instanceType` can either be defined as `QAP` or `RQAP`.\n\nThe problem instance must be supplied in the problems folder with the file extension `.dat` for QAP instances and `.rqap` for RQAP instances. The name of the instance to optimize must always be specified as `instanceName`, without the file extension.\n\n### Using the prebuild docker image:\n\nThere are some instances prebuilt into the docker image, which can be used directly. They can be checked in this repositories [problems folder](https://github.com/leoek/r-qap-optimization/tree/master/problems).\n\nIf you want to supply other instances, these instances should be mounted into the docker container at `/usr/src/app/problems`. For example to mount instances from `/tmp/instances` the following flag for the docker run command should be used: `-v tmp/instances:/usr/src/app/problems:ro`.\n\n- command: `docker run --rm leoek/rqap:current serve:node default \u003cinstanceName\u003e \u003cinstanceType\u003e \u003carguments\u003e`\n\n- example: `docker run --rm leoek/rqap:current serve:node default nug12b RQAP --agents 10 --solutionCountTarget 100000`\n\n- example with custom instances from `/tmp/instances`: `docker run --rm -v tmp/instances:/usr/src/app/problems:ro leoek/rqap:current serve:node default nug12b RQAP --agents 10 --solutionCountTarget 100000`\n\n### Using a local build:\n\n- Build the project\n  1. donwload dependencies: `yarn`\n  2. build the project: `yarn build`\n- run: `yarn serve:node default \u003cinstanceName\u003e \u003cinstanceType\u003e \u003cnamed arguments\u003e`\n- example: `yarn serve:node default nug12b RQAP --agents 10 --solutionCountTarget 100000`\n\n## Parameters\n\n- Number of Agents: `agents`\n- Number of Solutions to create (execution will stop when this number reached): `solutionCountTarget`\n- `Number of Solutions to create during warmup (defaults to 100):`warmupSolutions`\n- Size of the personal best Population: `maxPersonalBest`\n- Size of the global best Population: `maxGlobalBest`\n- Size of the personal history Population: `maxPersonalHistory`\n- Size of the iteration best Population: `maxIterationBest`\n- Weight of the personal best Population: `pBestPopulationWeight`\n- Weight of the global best Population: `gBestPopulationWeight`\n- Weight for a random selection: `rndWeight`\n- Weight of the personal history Population: `pHistoryWeight`\n- Weight of the iteration best Population: `iterationBestWeight`\n- Directory to read problem instances from (defaults to `./problems`): `problemInstancesDirectory`\n- Activate some per agent randomization of populations sizes and weights (0 - `false`, 1 - `true`, defaults to `false`): `randomizeAgentOptions`\n\n## Development Setup\n\n### Requirements\n\n1. c and c++ compiler and debugger\n2. node \u003e= 6.7\n3. globally installed node-gyp (`yarn global add node-gyp`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoek%2Fr-qap-optimization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoek%2Fr-qap-optimization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoek%2Fr-qap-optimization/lists"}