simBac_par {BacArena}R Documentation

Function for one simulation iteration for objects of Bac class

Description

The generic function simBac_par implements all neccessary functions for the individuals to update the complete environment.

Usage

simBac_par(
  object,
  arena,
  j,
  sublb,
  bacnum,
  lpobject,
  sec_obj = "none",
  cutoff = 1e-06,
  with_shadow = FALSE
)

## S4 method for signature 'Bac'
simBac_par(
  object,
  arena,
  j,
  sublb,
  bacnum,
  lpobject,
  sec_obj = "none",
  cutoff = 1e-06,
  with_shadow = FALSE
)

Arguments

object

An object of class Bac.

arena

An object of class Arena defining the environment.

j

The index of the organism of interest in orgdat.

sublb

A vector containing the substance concentrations in the current position of the individual of interest.

bacnum

integer indicating the number of bacteria individuals per gridcell

lpobject

linar programming object (copy of organism@lpobj) that have to be a deep copy in parallel due to pointer use in sybil.

sec_obj

character giving the secondary objective for a bi-level LP if wanted.

cutoff

value used to define numeric accuracy

with_shadow

True if shadow cost should be stores (default off).

Value

Returns the updated enivironment of the population parameter with all new positions of individuals on the grid and all new substrate concentrations.


[Package BacArena version 1.8.2 Index]