octave-maintainers
[Top][All Lists]
Advanced

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

Re: Patch to qp() to support extra arg specifying maximum iteration


From: Joshua Redstone
Subject: Re: Patch to qp() to support extra arg specifying maximum iteration
Date: Mon, 4 Jan 2010 20:12:44 -0800

Hi John,
I updated it to use an options structure (using optimget).
A fresh diff is attached.
Thanks for your comments.
Cheers,
Josh

2010/1/3 John W. Eaton <address@hidden>
On  3-Jan-2010, Joshua Redstone wrote:

| Hi S ren,
| Thanks for the suggestion - I didn't know about default args.  I've attached
| an updated diff.
| Thanks,
| Josh
|
| On Sun, Jan 3, 2010 at 10:37 AM, S ren Hauberg <address@hidden> wrote:
|
| > s n, 03 01 2010 kl. 10:26 -0800, skrev Joshua Redstone:
| > > Attached is a patch that implements a TODO in qp.m.  This adds an
| > > extra arg to qp() to specify the maximum number of iterations.  The
| > > current, hard-coded value of 200 iterations is sometimes insufficient
| > > for convergence.
| >
| > Can't you use a default argument for this, i.e. something like
| >
| >  function [x, obj, INFO, lambda] = qp (x0, H, q, A, b, lb, ub, A_lb,
| > A_in, A_ub, maxit = 200)

I think this should be done with an options structure instead.

jwe

Attachment: octave-qp-patch
Description: Binary data


reply via email to

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