1. A method for operating an artificial nervous system, comprising: determining one or more updated values for artificial neuromodulators to be used by a plurality of artificial neurons; storing the updated values locally as global values, at one of the plurality of artificial neurons, wherein: the plurality of artificial neurons are connected, via one or more synapses, to the artificial neuron storing the updated values; a type of each of the one or more synapses corresponds to a type of one of the artificial neuromodulators and is associated with a weight value; and determining the one or more updated values comprises updating the corresponding stored value for the artificial neuromodulators by the weight value when a spike occurs on the corresponding synapse; and providing the updated values to the plurality of artificial neurons.