Discussion:
Need Help with nonlin_redidim in optim
Wirth, Rosmarie
2018-10-02 13:19:26 UTC
Permalink
Hello,

i am trying to run a script in Octave on my ios- Coumpter.
But I allways get the same Error:


'nonlin_residim' undefined near line 14 column 5

error: called from

Fit at line 14 column 3

run at line 71 column 7

Some weeks ago the script was performing fine and I had no problem with this error. Suddenly this error appeared. So I switched to a different ios-Computer, which had already octave and optim installed. After some days the same error occurred on this Computer. Now I installed octave on a third ios Computer and have the same problem. On the first one I reinstalled octave and all packages. On non of these Computers runs the script anymore. There is no Bug in the script because it was running fine before this error occurred.

I have no Idea how to fix this bug.

This is line 14, where the bug is supposed to be: [p, residuals, cvg, outp] = nonlin_residim (f, init)

I load optim in the script as followed: pkg load optim;

Thanks for your help,

Kind regards,
Rosmarie



----------------------------
[A green Tree] Bitte denken Sie an die Umwelt! MÃŒssen Sie diese Nachricht ausdrucken?

----------------------------
Fielmann Ventures GmbH - Sitz der Gesellschaft: Hamburg - Amtsgericht Hamburg, HRB 124118 - GeschÀftsfÌhrer: Dr. Michael Ahrens, Marc Fielmann, Thomas RÌtzel, Dr. Stefan Thies, Georg Alexander Zeiss
Olaf Till
2018-10-02 17:44:48 UTC
Permalink
On Tue, Oct 02, 2018 at 01:19:26PM +0000, Wirth, Rosmarie wrote:
> 'nonlin_residim' undefined near line 14 column 5

Probably a typo and 'nonlin_residmin' is meant.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
Olaf Till
2018-10-04 08:02:04 UTC
Permalink
On Thu, Oct 04, 2018 at 07:36:59AM +0000, Wirth, Rosmarie wrote:
> Thanks for this hint.
> But I still get this Error:
>
> error: called from
> nonlin_residmin at line 97 column 21

This line is empty in the current version of nonlin_residmin ...

> Fit at line 17 column 24
> run at line 71 column 7
>
> in Line 17 the nonlin_residmin is called.

This looks like an error in nonlin_residmin, but you'd need to provide
more information.

Which version of the optim package?

Full error message?

Contents of code line which calls nonlin_residmin, contents of
variables used as arguments for nonlin_residmin?

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
Olaf Till
2018-10-04 10:09:20 UTC
Permalink
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.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
Wirth, Rosmarie
2018-10-05 11:40:42 UTC
Permalink
Dear Olaf,

thanks for your help.

I can open, read and manipulate all function files. So this is not the Problem.

We checkt whether we have several installations of optim or octave, but this is not the case.
On one of our Computers, which is freshly set up, we have the same problem.
Also we are the root-user and there are no non-root-users using this computers. To be sure
I deinstalled all packages and reinstalled them like you told. But no change.

The interessting point is, we have the same error on all three Mac computers we are using.
We are using the ios " High Sierra".
We have another Person in this office, she is using windows and has no Problems, even though
she is using the same skript.

Maybe it has something to do with the ios?

Reegards,
Rosmarie

________________________________________
Von: Olaf Till [***@t-online.de]
Gesendet: Donnerstag, 4. Oktober 2018 12:09
An: Wirth, Rosmarie
Cc: Octave Help Mailing List
Betreff: Re: Need Help with nonlin_redidim in optim

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.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net


-----------------------------
Bitte denken Sie an die Umwelt! Müssen Sie diese Nachricht ausdrucken?
-----------------------------
Fielmann Ventures GmbH - Sitz der Gesellschaft: Hamburg - Amtsgericht Hamburg, HRB 124118 - Geschäftsführer: Dr. Michael Ahrens, Marc Fielmann, Thomas Rützel, Dr. Stefa
Wirth, Rosmarie
2018-10-10 07:52:25 UTC
Permalink
Hello Olaf,


this morning I used Octave and tried my old Fit- Script, which cased all these problems. Miraculously the Script ran with no Error- Message and the fit looks fine.
I tried this also on one of the other Computers, with the same result.

I have no Idea how this happend. I did not change any part of the script or the octave setup. But now it works.
Is this your work?

In any way I am really thankful that I can use Octave again.

Thanks for your work and friendly support.
Kind Regards from Germany

________________________________________
Von: Wirth, Rosmarie
Gesendet: Freitag, 5. Oktober 2018 13:40
An: Olaf Till
Cc: Octave Help Mailing List
Betreff: AW: Need Help with nonlin_redidim in optim

Dear Olaf,

thanks for your help.

I can open, read and manipulate all function files. So this is not the Problem.

We checkt whether we have several installations of optim or octave, but this is not the case.
On one of our Computers, which is freshly set up, we have the same problem.
Also we are the root-user and there are no non-root-users using this computers. To be sure
I deinstalled all packages and reinstalled them like you told. But no change.

The interessting point is, we have the same error on all three Mac computers we are using.
We are using the ios " High Sierra".
We have another Person in this office, she is using windows and has no Problems, even though
she is using the same skript.

Maybe it has something to do with the ios?

Reegards,
Rosmarie

________________________________________
Von: Olaf Till [***@t-online.de]
Gesendet: Donnerstag, 4. Oktober 2018 12:09
An: Wirth, Rosmarie
Cc: Octave Help Mailing List
Betreff: Re: Need Help with nonlin_redidim in optim

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.

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net


-----------------------------
Bitte denken Sie an die Umwelt! Müssen Sie diese Nachricht ausdrucken?
-----------------------------
Fielmann Ventures GmbH - Sitz der Gesellschaft: Hamburg - Amtsgericht Hamburg, HRB 124118 - Geschäftsführer: Dr. Michael Ahrens, Marc Fielmann, Thomas Rützel, Dr. Stefan Thies
Loading...