octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #31383] optimset.m does not set options being


From: Olaf Till
Subject: [Octave-bug-tracker] [bug #31383] optimset.m does not set options being a cell-array correctly
Date: Wed, 20 Oct 2010 08:16:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.19) Gecko/2010091807 Iceweasel/3.0.6 (Debian-3.0.6-3)

URL:
  <http://savannah.gnu.org/bugs/?31383>

                 Summary: optimset.m does not set options being a cell-array
correctly
                 Project: GNU Octave
            Submitted by: i7tiol
            Submitted on: Wed 20 Oct 2010 08:16:32 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

If an option is a cell-array, optimset does not set it correctly. The reason
is that optimset uses struct() for setting options. A tiny changeset is
attached. Example, first of incorrect, than of correct (with the change)
behavior:

octave:2> old_optimset ("a", 0, "b", {})
warning: function name `optimset' does not agree with function file name
`/home/olaf/devel/src/octave/scripts/optimization/old_optimset.m'
warning: unrecognized option: a
warning: unrecognized option: b
ans =
{
  a = {}(0x0)
b = {}(0x0)
}

octave:3> optimset ("a", 0, "b", {})
warning: unrecognized option: a
warning: unrecognized option: b
ans =
{
  a = 0
  b = {}(0x0)
}

octave:4> 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 20 Oct 2010 08:16:32 AM GMT  Name: optimset.changeset  Size: 1kB  
By: i7tiol

<http://savannah.gnu.org/bugs/download.php?file_id=21730>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31383>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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