You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In GAMA's manual, I observed that diffusion can be performed by customizing uniform/irregular gradient matrices, as shown in the figure.
But I couldn't find any code that can use gradient matrix to perform diffusion, and when I wrote code it like this:
diffuse var: phero on: cells matrix:mat_grad propagation:gradient;
an error occurred:""matrix:" and "propagation:" can not be used at the same time".
Does this mean that gradient diffusion cannot be performed based on a custom matrix, and can only be executed using parameters such as variation and radius? However, my project requires irregular gradient diffusion, and diffusion based on parameters cannot achieve the same effect.
So, is there anyone who can help me?
If gradient diffusion can be performed based on a gradient matrix, please provide the correct execution code.
If it is not possible, how can I achieve the effect of my irregular gradient diffusion?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In GAMA's manual, I observed that diffusion can be performed by customizing uniform/irregular gradient matrices, as shown in the figure.


But I couldn't find any code that can use gradient matrix to perform diffusion, and when I wrote code it like this:
an error occurred:""matrix:" and "propagation:" can not be used at the same time".
Does this mean that gradient diffusion cannot be performed based on a custom matrix, and can only be executed using parameters such as variation and radius? However, my project requires irregular gradient diffusion, and diffusion based on parameters cannot achieve the same effect.
So, is there anyone who can help me?
Thank you very much!!!
Beta Was this translation helpful? Give feedback.
All reactions