Skip to content

Commit

Permalink
New parallel engine for genetic search.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed Jan 5, 2025
1 parent 78c9db8 commit 82975c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "molecular-ts",
"version": "1.13.4",
"version": "1.14.0",
"private": true,
"scripts": {
"dev": "vite",
Expand All @@ -26,7 +26,7 @@
"bootstrap": "^5.3.3",
"bootstrap-icons": "^1.10.3",
"browser-process": "^0.0.1",
"genetic-search-multiprocess": "^2.1.0",
"genetic-search-multiprocess": "^2.2.0",
"itertools-ts": "^1.27.1",
"mdb-vue-ui-kit": "^4.1.1",
"node-fetch": "^3.3.2",
Expand All @@ -35,7 +35,7 @@
"unplugin-vue-macros": "^2.7.9",
"vue": "^3.4.15",
"vue3-charts": "^1.1.33",
"multiprocessor": "^0.4.0"
"multiprocess-pool": "^1.2.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/genetic/multiprocessing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const referenceGradeMultiprocessingTask = async ([
]: ReferenceTaskConfig): Promise<number[]> => {
worldConfig.TEMPERATURE_FUNCTION = () => 1;

const dirName = __dirname.replace('/node_modules/multiprocess-pool/dist', '/src');
const dirName = __dirname.replace('/node_modules/multiprocessor/lib', '/src');
const { repeatRunSimulationForReferenceGrade } = await import(`${dirName}/lib/genetic/grade`);

return repeatRunSimulationForReferenceGrade(worldConfig, typesConfig, checkpoints, repeats);
Expand All @@ -63,7 +63,7 @@ export const clusterizationGradeMultiprocessingTask = async ([
]: ClusterizationTaskConfig): Promise<number[]> => {
worldConfig.TEMPERATURE_FUNCTION = () => 1;

const dirName = __dirname.replace('/node_modules/multiprocess-pool/dist', '/src');
const dirName = __dirname.replace('/node_modules/multiprocessor/lib', '/src');
const { repeatRunSimulationForClustersGrade } = await import(`${dirName}/lib/genetic/grade`);

return repeatRunSimulationForClustersGrade([
Expand Down

0 comments on commit 82975c1

Please sign in to comment.