[bug #68473] sqp bound check error message

"Dmitri A. Sergatskov" <[email protected]> Tue, 23 Jun 2026 20:07:37 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============1982444256447105557==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============1982444256447105557==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-424238335-1782259657=:3283960"
Content-Disposition: inline

--8323329-424238335-1782259657=:3283960
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #1, bug #68473 (group octave):=0A=0AI can reproduce it. T=
he problem is that the code filters out Infs so vectors=0Abecomes inconsist=
ent. =0AThe attached CSET (file bug68473_sqp_20260623_100.cset) fixes that =
for me. The=0Afixed (file sqp.m) is also attached.=0A=0Aoctave:1> pkg load =
optim=0Aoctave:2> fun=3D@(x) sum(x.^2)=0Alb=3D[-inf 10 0]; ub=3D[0 29 inf];=
 ub-lb,=0Ax0=3D[-10 15 5]; x0-lb, ub-x0=0Ax=3Dfmincon (fun, x0, [], [], [],=
 [], lb,ub); x-lb, ub-x=0Ax=3Dsqp(x0, fun, [],[], lb,ub); =0Afun =3D=0A=0A@=
(x) sum (x .^ 2)=0A=0Aans =3D=0A=0A      Inf  19.0000      Inf=0A=0Aans =3D=
=0A=0A      Inf   5.0000   5.0000=0A=0Aans =3D=0A=0A  10.0000  14.0000     =
 Inf=0A=0Aans =3D=0A=0A      Inf        0   0.0000=0A=0Aans =3D=0A=0A      =
  0  19.0000      Inf=0A=0A=0A=0ADmitri.=0A-- =0A=0A=0A(file #58746, file #=
58747)=0A=0A    _______________________________________________________=0A=
=0AAdditional Item Attachment:=0A=0AName: bug68473_sqp_20260623_100.cset Si=
ze: 2.7KiB=0A=0A<https://file.savannah.gnu.org/file/bug68473_sqp_20260623_1=
00.cset?file_id=3D58746>=0A=0AName: sqp.m                          Size: 20=
KiB=0A    <https://file.savannah.gnu.org/file/sqp.m?file_id=3D58747>=0A=0A=
=0A    AGPL NOTICE=0A=0AThese attachments are served by Savane. You can dow=
nload the corresponding=0Asource code of Savane at=0Ahttps://savannah.gnu.o=
rg/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz=0A=0A=0A  =
  _______________________________________________________=0A=0AReply to thi=
s item at:=0A=0A  <https://savannah.gnu.org/bugs/?68473>=0A=0A_____________=
__________________________________=0AMessage sent via Savannah=0Ahttps://sa=
vannah.gnu.org/=0A
--8323329-424238335-1782259657=:3283960
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCajsfyQAKCRCqLAuaBUf3
TiinAP9h1hq/WM8l97swpPoxUTVlWrUvPFoAaYNw4qourMEA1QEAnBO+10h71HNt
4v+ikrghRA86tXJrLR+mFf+fnZolCA0=
=wHgE
-----END PGP SIGNATURE-----

--8323329-424238335-1782259657=:3283960--



--===============1982444256447105557==--