unrecognized option

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

unrecognized option

Ilknur Bayrak Pehlivan

Hello,

 

I recently started to use Octave. One of my colleague gave me a program which is run on his computer. I tried it. However, I got the error messages shown in the attachment.

I will be grateful if you can help me.

 

Best regards

ilknur
Inline image 1

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: unrecognized option

Doug Stewart-4


On Fri, Aug 4, 2017 at 4:53 AM, Ilknur Bayrak Pehlivan <[hidden email]> wrote:

Hello,

 

I recently started to use Octave. One of my colleague gave me a program which is run on his computer. I tried it. However, I got the error messages shown in the attachment.

I will be grateful if you can help me.

 

Best regards

ilknur
Inline image 1

_

I would like to help but I cannot read the error message.
--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: unrecognized option

mmuetzel
In reply to this post by Ilknur Bayrak Pehlivan
Hello Ilknur,

It is difficult to recognize anything on your screenshot. Please, post your inputs and the outputs you are getting from Octave as plain text in the future. But I'll try and guess:
It looks like you are calling optimset with options "lbound" and "ubound". Those options are not available in core Octave. Try loading the "optim" package before using the function:
pkg load optim

If you are using the zip-version (not the installer) for Windows. You have to execute the following command once before loading the package:
pkg rebuild

Best regards
Markus
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: unrecognized option

Ilknur Bayrak Pehlivan
In reply to this post by Doug Stewart-4
Thank you.

Here is the error message:

ḹwarning: optimset: unrecognized option: lbound
warning: called from
    optimset at line 157 column 11
    optimset at line 175 column 12
    odm_lsq_fit_III at line 49 column 10
    module_TC_and_IV_model_UM20170613 at line 50 column 9
warning: optimset: unrecognized option: ubound
warning: called from
    optimset at line 157 column 11
    optimset at line 175 column 12
    odm_lsq_fit_III at line 49 column 10
    module_TC_and_IV_model_UM20170613 at line 50 column 9
error: 'nonlin_curvefit' undefined near line 50 column 30
error: called from
    odm_lsq_fit_III at line 50 column 28
    module_TC_and_IV_model_UM20170613 at line 50 column 9
>>

On Fri, Aug 4, 2017 at 4:50 PM, Doug Stewart <[hidden email]> wrote:


On Fri, Aug 4, 2017 at 4:53 AM, Ilknur Bayrak Pehlivan <[hidden email]> wrote:

Hello,

 

I recently started to use Octave. One of my colleague gave me a program which is run on his computer. I tried it. However, I got the error messages shown in the attachment.

I will be grateful if you can help me.

 

Best regards

ilknur
Inline image 1

_

I would like to help but I cannot read the error message.
--
DASCertificate for 206392



_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: unrecognized option

Doug Stewart-4


On Fri, Aug 4, 2017 at 11:04 AM, Ilknur Bayrak Pehlivan <[hidden email]> wrote:
Thank you.

Here is the error message:

ḹwarning: optimset: unrecognized option: lbound
warning: called from
    optimset at line 157 column 11
    optimset at line 175 column 12
    odm_lsq_fit_III at line 49 column 10
    module_TC_and_IV_model_UM20170613 at line 50 column 9
warning: optimset: unrecognized option: ubound
warning: called from
    optimset at line 157 column 11
    optimset at line 175 column 12
    odm_lsq_fit_III at line 49 column 10
    module_TC_and_IV_model_UM20170613 at line 50 column 9
error: 'nonlin_curvefit' undefined near line 50 column 30

Do you have the optim pkg installed and loaded?

What version of octave?
what version of optim?
What os?

 
error: called from
    odm_lsq_fit_III at line 50 column 28
    module_TC_and_IV_model_UM20170613 at line 50 column 9
>>








--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: unrecognized option

NJank
In reply to this post by Ilknur Bayrak Pehlivan
On Fri, Aug 4, 2017 at 4:53 AM, Ilknur Bayrak Pehlivan <[hidden email]> wrote:

Hello,

 

I recently started to use Octave. One of my colleague gave me a program which is run on his computer. I tried it. However, I got the error messages shown in the attachment.

I will be grateful if you can help me.



Ok, first, Octave puts messages out in plain text. it is much easier if you just copy and paste the text into an email.  The image you did attach was small and low resolution and I almost couldn't make out what was on it. Second, it's usually better to attach images to an email for groups like this instead of embedding them in the message, which might be what made the image so small.

The message as best as I can make it out has the warning line as:
warning: optimset: unrecognized option: lbound

My best guess at what the error line says is maybe:

error: 'nonlin_curvefit' undefined in line...

these both indicates you didn't first load the 'optim' package.  So...

make sure you have the optim package installed:
>> pkg list

load the package before running your script:
>> pkg load optim

then report back on whether you still get errors, and please don't attach the output as an image.

It's fuzzy, but it looks like you're running a windows version of octave. 'optim' should come installed already.  if 'pkg list' does not show any packages, try 'pkg rebuild' followed by another 'pkg list'.  if you still don't see optim, you can try:

>> pkg install -forge optim'

to download and install the most recent optim release. then a pkg load optim should work.

nickj

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Loading...