# Example of "controlling aspects of the environment so that disturbances don't arise"

**URL:** <http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296>\
**Category:** Collective phenomena\
**Created:** [November 15, 2026, 7:33am UTC](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296 "2026-11-15T07:33:53Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![rsmarken](http://discourse.iapct.org/user_avatar/discourse.iapct.org/rsmarken/32/3553_2.png) [@rsmarken](http://discourse.iapct.org/u/rsmarken)\
**Post date:** [November 21, 2026, 12:24am UTC](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296/21 "2026-11-21T00:24:53Z")

</div>

> [@Lukasz20](#):
>
> The problem is elementary: **no dataset can discriminate between two models when one of them has no written equations.** “Plain vanilla PCT” is a label, not a prediction.

The problem, dear Lukas, is not in our equations (the equations that define the basic model of PCT can be found in the Appendix to B:CP.) but in our data. (With apologoes to that other great Bill, Shakespeare). It’s nice to have columns of numbers against which to test models, but numbers without a description of what produced them is “data” that is useless for testing model.

Ok, it looks like you are giving me that informatoin here:

> [@Lukasz20](#):
>
> ### 3. Here are the exact data you are asking for
> 
> **Experimental setup (two equivalent realizations):**
> 
> 1. **Physical system (straight from this thread, #7 and #9):** Two or more independent controllers coupled through a single physical supply with known, finite capacity `C_max`—such as the heating system from #9 with bounded heat-delivery capacity, or the shared water supply from #7 with finite flow and pressure.
> 2. **Laboratory task (your own format from #105):** A two-person (or multi-person) browser tracking task—directly extending your mouse-tracking demos and Bourbon’s two-person tasks—where each participant controls their own cursor `p_A` or `p_B`, while the combined effectiveness of their outputs is bounded by a shared throughput limit `C_max`.

YEs, this helps. I think it would be easiest for me to implement #2 as a computer demo. I think what you are describing is two people, A and B, doing a compensaory tracking task, each controlling the perception of the position of a cursor, p.A and p.B.

Now the question is how these perceptions are affected by each persons output. In particular, how do I set up this experiment so that “the combined effectiveness of their outputs is bounded by a shared throughput limit `C_max`.”? In order to control the cursors, each person’s output, o.A and o.B, has to have separate effect on p.A and p.B. Do you mean that o.A and o.B are each limited by the same C\_max? Or are you assuming that the sum o.A +o.B affects p.A and p.B such that p.A = C\_max(o.A +o.B) +d.A and p.B = C\_max(o.A +o.B) + d.B? And would you like C\_max to be variable?

---

<div class="post-metadata">

**Author:** ![rsmarken](http://discourse.iapct.org/user_avatar/discourse.iapct.org/rsmarken/32/3553_2.png) [@rsmarken](http://discourse.iapct.org/u/rsmarken)\
**Post date:** [November 24, 2026, 1:01am UTC](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296/22 "2026-11-24T01:01:45Z")

</div>

Hi Lukas

Are you ever planning to reply to my post # 21?

Best, Rick

---

<div class="post-metadata">

**Author:** ![Lukasz20](http://discourse.iapct.org/user_avatar/discourse.iapct.org/lukasz20/32/4000_2.png) [@Lukasz20](http://discourse.iapct.org/u/Lukasz20)\
**Post date:** [November 24, 2026, 1:36am UTC](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296/23 "2026-11-24T01:36:52Z")

</div>

Rick,

Sorry for the delay. Here is a direct answer to #21.

### The equations

Neither of the two. Each person’s output acts only on their own cursor. What they share is the _effectiveness_ of that action, which falls as their combined output approaches the capacity C:

```auto
p.A = M · g(T) · o.A + d.A
p.B = M · g(T) · o.B + d.B
T = o.A + o.B

```

Outputs are non-negative (each person draws on the shared resource), and the limit is either hard or smooth:

```auto
hard: g(T) = min(1, C/T)
smooth: g(T) = tanh(T/C) / (T/C)

```

Three properties follow.

1. At light load (T much smaller than C), g ≈ 1 and each equation reduces to **p = M·o + d** , the standard model, with no coupling between A and B.
2. Together the two cursors can never be moved by more than **M·C** : with the smooth limit M·g(T)·T = M·C·tanh(T/C) \< M·C, with the hard limit M·min(T, C). That is what I meant by “combined effectiveness bounded by a shared throughput limit”.
3. A’s own slope, ∂p.A/∂o.A = M·(g + o.A·g′), falls towards zero as T grows, and B’s output now moves A’s cursor: ∂p.A/∂o.B = M·o.A·g′ \< 0. In the standard model these are **M** and **0**.

### C

Yes, C should be a variable, set by the experimenter, fixed within a run and varied between conditions:

- one condition with C much larger than the combined demand, where all the models should be indistinguishable (a check on the setup);
- one with C close to or below it.

### One design point for you to judge

In a compensatory task the handle can go negative, while here output draws on a resource and must be non-negative. One way to do it: each cursor rests at the left of its track, the person pushes it to the right (o ≥ 0) against a disturbance pulling it left, and holds it on a target. If you see a cleaner way to keep output non-negative in your setup, I am happy to use it.

### The test that discriminates

Fit a model to a calibration run, then predict the outputs for a different reference step **without refitting**. I compared three models on the same shared environment:

1. **Shared capacity:** the gain depends on the controllers’ outputs, as above.
2. **Replayed disturbance:** an additive disturbance recorded from the calibration run and replayed independently of every output. This is your definition of a disturbance in thread 16253, #140.
3. **Replayed external gain:** a feedback gain recorded from the calibration run and replayed as a gain varied from outside, independently of every output. This is your demo in 16253, #104–#105, where, as you said in #112, the computer plays B.

Five controllers, hard limit, C = 8, gain 5, output limit 10, calibration step +3, test step +0.5, means over 50–60 s:

| Model | Calibration run | Test: perception of A / others | Test: output of A / others |
| --- | --- | --- | --- |
| 1 · shared capacity | reference | 2.0 / 1.5 | **2.0 / 1.5** |
| 2 · replayed disturbance | exact | 2.0 / 1.5 | **10.0 / 7.5** |
| 3 · replayed external gain | exact | 2.0 / 1.5 | **10.0 / 7.5** |

All three reproduce the calibration run exactly, and all three give the same perceptions on the test. Only the outputs separate them, which is your own criterion: how well a model reproduces what the participants do. With the smooth limit the result is the same in kind: on the test step the replayed-disturbance model’s peak output is 13.9 times the shared model’s for A and 6.9 times for each of the others.

So I agree with your #109 that a varying feedback function is handled by the controller like a disturbance _within one run_. What a gain varied from outside cannot do is predict a different intervention. Only the model in which the gain depends on the controllers’ own outputs transfers, and that is your **M = f(q\_oB)** from #104, written out in full.

These are simulations, model against model. Whether people behave like any of these models is exactly what the experiment is for, and I have no human data yet.

### Code

Everything runs in the browser, and you can check the numbers above yourself:

- [Control in Shared Environments](https://perceptualcontroltheory.org/lab/shared-capacity/): mode “Fitting a trajectory is not predicting an intervention”. Model 3 is shown under the two columns. The CSV, JSON and Python exports give the same numbers.
- [ATENFEL, source and tests](https://perceptualcontroltheory.org/atenfel/#review-code): the smooth limit (`environment()` in `atenfel-engine.js`, with tests).

### Precedent

The closest one I know is Bourbon’s two-person tracking: Bourbon, W. T. (1989), “A control-theory analysis of interference during social tracking”, in _Volitional Action: Conation and Control_, Advances in Psychology, pp. 235–251.

### Next

If you would like to build the two-person demo yourself, these equations are all you need. Or I can build it and post the code before any data are collected, so you can check the setup first. As I said in #20: if Model 2 or Model 3 reproduces the participants’ outputs on both steps without refitting, I will say publicly that I was wrong.

Best,  
Luk

---

<div class="post-metadata">

**Author:** ![rsmarken](http://discourse.iapct.org/user_avatar/discourse.iapct.org/rsmarken/32/3553_2.png) [@rsmarken](http://discourse.iapct.org/u/rsmarken)\
**Post date:** [November 24, 2026, 7:53pm UTC](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296/24 "2026-11-24T19:53:15Z")

</div>

> [@Lukasz20](#):
>
> ### The equations
> 
> Each person’s output acts only on their own cursor. What they share is the _effectiveness_ of that action, which falls as their combined output approaches the capacity C:
> 
> ```auto
> p.A = M · g(T) · o.A + d.A
> p.B = M · g(T) · o.B + d.B
> T = o.A + o.B
> 
> ```

OK. I can implement this as a computer tracking task. But I have a few questions before I start.

1. I presume that p.A and p.B are perceptions of the positions of two different cursors, one controlled by person A (qi.A) and the other by person B (qi.B) and that, for simplicity, we are assuming that p.A = qi.A and p.B= qi.B, so there is no need to have the positions of cursor A and B (qi.A and qi.B) explicitly in the model. Is this correct?

2. I presume M is mouse position. The equations imply that both controllers are using the same mouse to produce two different outputs, o.A and o.B, which, of course, is impossible. And the mouse values are the outputs that affect the perception of cursor position. So if M is, indeed, meant to be the output that each controller uses to control their own cursor, then it is an unnecessary variable because o.A and o.B must be each controller’s movements of their own mouse that are used to counter the disturbances, d.A and d.B, and keep their perceptions, p.A and p.B, under control. Is that right?

> [@Lukasz20](#):
>
> ### One design point for you to judge
> 
> In a compensatory task the handle can go negative, while here output draws on a resource and must be non-negative. One way to do it: each cursor rests at the left of its track, the person pushes it to the right (o ≥ 0) against a disturbance pulling it left, and holds it on a target. If you see a cleaner way to keep output non-negative in your setup, I am happy to use it.

Based on your description of output as “drawing on a resource”, why not have T = Abs(o.A) + Abs (o.B). The signs of o.A and o.B just indicate the direction of motion of the output but since the resources needed to produce output in the positive direction are proportional to the size of the output this should also be true of output in the negative direction.

> [@Lukasz20](#):
>
> ### The test that discriminates
> 
> Fit a model to a calibration run, then predict the outputs for a different reference step **without refitting**. I compared three models on the same shared environment:

I have no idea what you’ve done here. You’ve only described one half of a control model, the environmental half. In order to compare the behavior of the model to human behavior we need a model of the humans controlling the cursors (in this strange environment, implemented by the computer program, where independent outputs can add together in this new variable called T and affect the feedback gain, g(T) of both controllers via T’s effect on the channel capcity (C) of that envronment.)

> [@Lukasz20](#):
>
> Five controllers, hard limit, C = 8, gain 5, output limit 10, calibration step +3, test step +0.5, means over 50–60 s:

What was your model of the controllers (the humans)? My model of a controller would just be a simple control organization with output produced by a leaky integrator. In computer code my model of the controll system side of this demo would be something like:

o.A = o.A + slow.A \* (gain.A \* (ref - p.A) -o.A)

with three adjustable parameters: slow.A damps changes in controller A’s output, gain.A is controller A’s responsiveness to error, and ref is the reference for the perceived position of controller A’s cursor.  
I will actually use this model as controller B in this simulation since the goal is to see if the same model can account for the behavior of a human (me, who will be controller A) in this environment.

> [@Lukasz20](#):
>
> So I agree with your #109 that a varying feedback function is handled by the controller like a disturbance _within one run_. What a gain varied from outside cannot do is predict a different intervention. Only the model in which the gain depends on the controllers’ own outputs transfers, and that is your **M = f(q\_oB)** from #104, written out in full.

I don’t undertand this at all. I don’t know what #104 (or #109) refer to, but it seems rather essential. I hope you can explain it to me.

> [@Lukasz20](#):
>
> These are simulations, model against model. Whether people behave like any of these models is exactly what the experiment is for, and I have no human data yet.

Actually, the only competing models I’ve seen are different models of the environment, not of the controller. Your model of the environment contains a channel capacity, C, and feedback functions, g(T), for each controller that depend on their own outputs and the outputs all other controllers in that environment. My model of the environment has no channel capacity and, while the output of one controller (A) can affect the gain of the feedback function of another controller (B), it happens because of real physical effects produced by one person on another, either intentionally (such as by A handing B a tool) or unintentionally (such as by A moving their head to get a better view of a performer, which interferes with B’s view).

> [@Lukasz20](#):
>
> If you would like to build the two-person demo yourself, these equations are all you need.

I do want to and will. And I could do it just using your equations. But I do need the clarifiactions I ask for in points 1 and 2 above – particularly 2 – so that I can do it right.

Best, Rick

[Previous page](http://discourse.iapct.org/t/example-of-controlling-aspects-of-the-environment-so-that-disturbances-dont-arise/16296.md?page=1)
