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

build/src/jerboaChallenge.js works but build/src/main.js does not #42

Open
michielbdejong opened this issue Oct 21, 2024 · 2 comments
Open

Comments

@michielbdejong
Copy link
Member

$ PROBING_REPORT=1 node ./build/src/jerboaChallenge.js ./__tests__/hourglass.csv ./jerboa.csv
Running single thread with 1 workers
resetting solution file ./jerboa.csv
Node 1 found loop (1-0:0 [] [ '1', '2', '3', '1' ]
Node 1 found loop (1-1:0 [] [ '1', '4', '5', '6', '1' ]
Finished 2 probes using 1 workers in a single thread
Worker 0 return stats {
  messagesReceived: 35,
  messagesSent: 35,
  transfersReceived: 7,
  transfersSent: 7,
  transferAmount: 7,
  bilateralNum: 14,
  bilateralAmount: 14,
  multilateralNum: 7,
  multilateralAmount: 7,
  numNodes: 6
}
7 transfers between 6 participants triggered an average of 5.00 messages each
Transfer amount 7
200% netted bilaterally
100% netted multilaterally
-200% not netted
{
  messagesReceived: 35,
  messagesSent: 35,
  transfersReceived: 7,
  transfersSent: 7,
  transferAmount: 7,
  bilateralNum: 14,
  bilateralAmount: 14,
  multilateralNum: 7,
  multilateralAmount: 7,
  numNodes: 6
}
@michielbdejong
Copy link
Member Author

Also stats for build/src/main.js are zero:

$ PROBING_REPORT=1 node ./build/src/main.js ./__tests__/hourglass.csv
Running single thread with 1 workers
Finished 0 probes using 1 workers in a single thread
Worker 0 return stats {
  messagesReceived: 0,
  messagesSent: 0,
  transfersReceived: 0,
  transfersSent: 0,
  transferAmount: 0,
  bilateralNum: 0,
  bilateralAmount: 0,
  multilateralNum: 0,
  multilateralAmount: 0,
  numNodes: 0
}
0 transfers between 0 participants triggered an average of NaN messages each
Transfer amount 0
NaN% netted bilaterally
NaN% netted multilaterally
NaN% not netted
{
  messagesReceived: 0,
  messagesSent: 0,
  transfersReceived: 0,
  transfersSent: 0,
  transferAmount: 0,
  bilateralNum: 0,
  bilateralAmount: 0,
  multilateralNum: 0,
  multilateralAmount: 0,
  numNodes: 0
}

michielbdejong added a commit that referenced this issue Oct 21, 2024
@michielbdejong
Copy link
Member Author

First issue solved, second issue is because it's actually running at all, renaming issue.

@michielbdejong michielbdejong changed the title netted bilaterally gets overestimated build/src/jerboaChallenge.js works but build/src/main.js does not Oct 21, 2024
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