bugGNU Octave - Bugs: bug #47782, leasqr

 
 

bug #47782: leasqr

Submitter:  None
Submitted:  Mon 25 Apr 2016 02:22:16 PM UTC
   
 
Category:  Octave Package Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Other
Status:  Works For Me Assigned to:  None
Originator Name:  phjoerg Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 May 2016 07:00:27 AM UTC, comment #2: 

One week without response, closing this report.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 25 Apr 2016 02:39:56 PM UTC, comment #1: 

Did you type


pkg load optim


in your command window or at the beginning of your script, in order to load the package before usage?

If this was the solution, please tell us, then we can close this report.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 25 Apr 2016 02:22:16 PM UTC, original submission:  

Dear Sir or Madam!
I tried the following demonstration code of leasqr (Demo2) on verbosus - and get the error:

error: 'leasqr' undefined near line 32 column 7

Even if I try on my octave 4.0.1 windows installation with the optim-1.5.0 package - I get this error?

Thx in advance -
kind regard

Philipp Joerg


  %% Example for linear inequality constraints.
  %% model function:
  F = @ (x, p) p(1) * exp (p(2) * x);
  %% independents and dependents:
  x = 1:5;
  y = [1, 2, 4, 7, 14];
  %% initial values:
  init = [.25; .25];
  %% other configuration (default values):
  tolerance = .0001;
  max_iterations = 20;
  weights = ones (1, 5);
  dp = [.001; .001]; % bidirectional numeric gradient stepsize
  dFdp = "dfdp"; % function for gradient (numerical)

  %% linear constraints, A.' * parametervector + B >= 0
  A = [1; -1]; B = 0; % p(1) >= p(2);
  options.inequc = {A, B};

  %% start leasqr, be sure that 'verbose' is not set
  global verbose; verbose = false;
  [f, p, cvg, iter] = ...
      leasqr (x, y, init, F, tolerance, max_iterations, ...
              weights, dp, dFdp, options)


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46505:  final-bug-1-fix-.png added by vtk_001 (82KiB - image/png - output)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vtk_001 (Updated the item)
  • -email is unavailable- added by vtk_001 (hello sir as i checked out this bug it was not getting by any other errors you have to load the installed optim package in octave and its dependencies such as struct,io,statistics and run the code )
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-12 vtk_001 Attached File- Added final-bug-1-fix-.png, #46505
        Carbon-Copy- Added -email is unavailable-
    2016-05-02 siko1056 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2016-04-25 siko1056 CategoryOctave Function Octave Package
        Severity3 - Normal 2 - Minor
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code