From b42ea9f9f810177a9a3a587ab46d46478dbc81f2 Mon Sep 17 00:00:00 2001 From: Hendrik Koerner Date: Fri, 15 Nov 2024 15:38:21 +0800 Subject: [PATCH] doc: Clarify size requirements of "lb" and "ub" in sqp (bug #66421). * scripts/optimization/sqp.m: Clarify size requirements of "lb" and "ub". --- scripts/optimization/sqp.m | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/optimization/sqp.m b/scripts/optimization/sqp.m index 2bd6eb8a52..2e3a0beaf7 100644 --- a/scripts/optimization/sqp.m +++ b/scripts/optimization/sqp.m @@ -117,11 +117,9 @@ ## ## @end ifnottex ## The fifth and sixth arguments, @var{lb} and @var{ub}, contain lower and -## upper bounds on @var{x}. These must be consistent with the equality and -## inequality constraints @var{g} and @var{h}. If the arguments are vectors -## then @var{x}(i) is bound by @var{lb}(i) and @var{ub}(i). A bound can also -## be a scalar in which case all elements of @var{x} will share the same -## bound. +## upper bounds on @var{x} and when provided must be vectors of the same size +## as the the vector @var{x0}. The bounds must be consistent with the +## equality and inequality constraints @var{g} and @var{h}. ## ## The seventh argument @var{maxiter} specifies the maximum number of ## iterations. The default value is 100.