Code center > Suggestions

Metabolism

<< < (3/7) > >>

Zelos:
btw, how do you plan to control 0/1s? programming lanuages show what 0/1 sequens something is or?

Numsgil:
Since I'll be using C++, we can control the 0/1s with C's built in bit manipulation routines.  But I don't know if that's cross platform or not...

Another way would be to contstruct a custom bit array.  I have a book that shows how, it's not terribly difficult.

Just need to be careful we don't use a whole integer for each bit (I think that's how bools work)

Numsgil:

--- Quote ---I love this system! but jsut to enoy shvarz, I dont belive all chemicals search for Equilibrium, only chemicals that can go both way do it. else chemicals search for lower energy if they are able to pass the energy barrier preventing them from doing it
--- End quote ---
In the system above, chemicals must move through enzymes, they can't go through reactions on their own.  So if no enzyme exists for a reaction, it can't happen, and the substance will have to find a different method for reaching equilibrium with the rest of the system.

Technical issue:
shvarz, how fine do the "bandwidth" of reactions need to be?  Like, can we represent them in [0,255] and use a single byte for each, or do we need to use a floating point number (8 bytes I think for each, I doin't remember exactly...) or a 2 byte number...

Do you get what I'm saying?  I'm still a little groggy.

shvarz:
Mmmmmm.... grog....  :drool:

If I understand you correctly, then you are asking what is the range of amounts of chemicals that can move in from one chemical  to another in a single cycle.  
That depends on what range of concentrations is allowed I guess.  Seems reasonable to allow bots to have 32000 of each chemical. With real-word most-common values being 100-10,000.  And the amounts being moved per each cycle from 0 to everything (so that there is no way to overflow).  I guess that makes 0-32000.

Say, would that be too much extra work to make a metabolism simulator, where we could input our own values for chemicals and rates and then look cycle-by-cycle how they move in the matrix?  It should not be, right?  Once you have the math working, then it's just visual representation of stuff that's already there.  Only problem I see is how to show an N-dimensional space...

Numsgil:
Shouldn't be a problem at all really.  I'll see how visualizable it is when I have some code for it...

2 bytes it is then ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version