From a0485ef1cc6d276a441dbd0327e27483516233d1 Mon Sep 17 00:00:00 2001 From: "Alexander V. Hopp" Date: Fri, 22 Nov 2024 14:33:40 +0100 Subject: [PATCH] Include motivation for interpoint constraints --- docs/userguide/constraints.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/userguide/constraints.md b/docs/userguide/constraints.md index a9be3a79f..3aba43409 100644 --- a/docs/userguide/constraints.md +++ b/docs/userguide/constraints.md @@ -79,13 +79,16 @@ ContinuousLinearConstraint( A more detailed example can be found [here](../../examples/Constraints_Continuous/linear_constraints). -#### Interpoint constraints +### Interpoint constraints The constraints discussed so far all belong to the class of so called "intrapoint constraints". That is, they impose conditions on each individual point of a batch. In contrast to this, interpoint constraints do so **across** the points of the batch. That is, an interpoint constraint of the form ``x_1 + x_2 <= 1`` enforces that the sum of all ``x_1`` values plus the sum of all ``x_2`` values in the batch must not exceed 1. +A possible relevant constraint might be that only 100ml of a given solvent are available for +a full batch, but there is no limit for the amount of solvent to use for a single experiment +within that batch. They can be defined by using the `interpoint` keyword of the [`ContinuousLinearConstraint`](baybe.constraints.continuous.ContinuousLinearConstraint) class as follows: