Menu

#11 Incorrect accounting in PromiscuousReprod

open-wont-fix
nobody
5
2010-01-07
2009-11-24
Rick Fisel
No

Midway through PromiscuousReprod.execute() in the Sugarscape example of AScape 5.2.0, first the agent's contribution to the child is set with setSugar(), and then the mate's contribution. The problem is, the mate's contribution should be added with addSugar(), not set so that it eliminates the agent's contribution.

Discussion

  • Miles Parker

    Miles Parker - 2010-01-07

    Just a quick comment on this one..IIRC the GAS_Sex code was never really vetted that strongly. I'm going to set this as "won't fix" simply because it is a model issue and I know that I'm not going to get to it for a very long time. :) Contributions welcome.

     
  • Miles Parker

    Miles Parker - 2010-01-07
    • status: open --> open-wont-fix
     
  • Rick Fisel

    Rick Fisel - 2010-01-07

    This is not so much a problem with the model, but a problem with matching the description of the model given in GAS. I could provide a quick fix, but I'm not sure how to check it in.

     
  • Miles Parker

    Miles Parker - 2010-01-07

    Sure that would be great... you could just attach the file here and I'll upload it.

     
  • Rick Fisel

    Rick Fisel - 2010-01-07

    Mate uses addSugar to avoid erasing agent's prior contribution.

     

Log in to post a comment.

MongoDB Logo MongoDB