[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help with nonlin_redidim in optim

From: Olaf Till
Subject: Re: Need Help with nonlin_redidim in optim
Date: Thu, 4 Oct 2018 12:09:20 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Thu, Oct 04, 2018 at 09:06:20AM +0000, Wirth, Rosmarie wrote:
> Thanks for your help!
> The full Error message:
> octave:2> run Desktop/Octave/Fit.m
> '__collect_constraints__' undefined near line 151 column 7
> error: called from
>     __nonlin_residmin__ at line 150 column 48
>     nonlin_residmin at line 97 column 21
>     Fit at line 17 column 24
>     run at line 71 column 7
> I am using optim 1.5.3 and I reinstalled all packages and octave several times

Yet this looks like an installation
problem. "__collect_contraints__.m" is a part of the optim package,
but it is not found.

If you type, at the Octave prompt:

which nonlin_residmin

the path to nonlin_residmin will be displayed:

'nonlin_residmin' is a function from the file /<some-path>/nonlin_residmin.m

In /<some-path>/ there should be a subdirectory 'private/'. Make sure
it is readable. To test this, you could cd into this subdirectory and
try to list its contents. Within this subdirectory there should be,
among others, the function files '__nonlin_residmin__.m' and
'__collect_constraints__.m'. Make sure all are readable, especially
the latter. To test this, you could try to open them with an editor.

If this doesn't give a clue -- sometimes there are weird problems due
to several concurrent installations of the same package (optim in this
case). E.g., it could be installed from a package provided by the
operating system, from the original Octave Forge package system wide
(with 'pkg' by the root user), and from the original Octave Forge
package not system wide (with 'pkg' by a non-priviledged user). If in
doubt, clear all installations: Start Octave as root, type 'pkg
uninstall optim'. Do the same after starting Octave as non-root. Make
sure not to have an optim package of your operating system installed
somewhere else (or only leave the latter installed).

Before you re-install optim with pkg, make sure to have started Octave
with a suitable 'umask'. E.g., type 'umask 022' from the shell, then
start Octave from this shell.

Please keep the help mailing list CCed.


public key id EAFE0591, e.g. on x-hkp://

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]