simBac_par: Function for one simulation iteration for objects of Bac...

Description Usage Arguments Value

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.


BacArena documentation built on July 2, 2020, 3:16 a.m.