Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Parasim #2

Open
xtrojak opened this issue Jul 23, 2022 · 1 comment
Open

Add Parasim #2

xtrojak opened this issue Jul 23, 2022 · 1 comment

Comments

@xtrojak
Copy link
Contributor

xtrojak commented Jul 23, 2022

Implement wrapper for Parasim tool.

@xtrojak
Copy link
Contributor Author

xtrojak commented Sep 14, 2022

Wrapper will be added in #6, however without full_exploration functionality that is kind of hacky. This was enabled by a single boolean param

<param name="full_exploration" type="boolean" checked="false" label="Explore full parameter space (might take significantly more time!)"/>

and required a small yet quite significant change in the source code. With this change, a new binaries were build and these were called instead when the parameter was set to true. If anyone needs to reintroduce this functionality, this is the change needed:

--- a/extensions/computation-density-impl/src/main/java/org/sybila/parasim/computation/density/spawn/cpu/FractionTrajectorySpawner.java
+++ b/extensions/computation-density-impl/src/main/java/org/sybila/parasim/computation/density/spawn/cpu/FractionTrajectorySpawner.java
@@ -76,7 +76,7 @@ public class FractionTrajectorySpawner implements TrajectorySpawner {
             TrajectoryWithNeighborhood trajectory = trajectories.getTrajectory(i);
             for (int n = 0; n < trajectory.getNeighbors().size(); n++) {
                 // check distance
-                if (!trajectories.getDistance(i, n).isValid()) {
+                //if (!trajectories.getDistance(i, n).isValid()) {
                     Trajectory neighbor = trajectory.getNeighbors().getTrajectory(n);
                     TrajectoryWithNeighborhood newTrajectory =  spawn(configuration, trajectory.getReference().getTrajectory(), neighbor.getReference().getTrajectory(), trajectories.getDistance(i, n), dimensionsToSkip, logInformation);
                     if (newTrajectory == null) {
@@ -87,7 +87,7 @@ public class FractionTrajectorySpawner implements TrajectorySpawner {
                         newSecondaryTrajectories.put(key, neigh);
                     }
                     newTrajectories.add(newTrajectory);
-                }
+                //}
 
             }
         }

@xtrojak xtrojak mentioned this issue Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant