Opened 14 years ago
Closed 14 years ago
#6302 closed enhancement (fixed)
[with patch, positive review] make openopt an optional spkg
Reported by: | William Stein | Owned by: | tbd |
---|---|---|---|
Priority: | major | Milestone: | sage-4.1.1 |
Component: | packages: optional | Keywords: | |
Cc: | Merged in: | Sage 4.1.1.rc0 | |
Authors: | William Stein | Reviewers: | David Joyner, Harald Schilly |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Change History (10)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Summary: | [with patch; needs review] make openopt an optional spkg → [with patch; positive review] make openopt an optional spkg |
---|
Passes sage -testall and also installs fine on a 10.4 macbook.
comment:3 Changed 14 years ago by
Authors: | → William Stein |
---|---|
Merged in: | → sage-4.1.1.alpha0 |
Resolution: | → fixed |
Reviewers: | → David Joyner |
Status: | new → closed |
Summary: | [with patch; positive review] make openopt an optional spkg → [with patch, positive review] make openopt an optional spkg |
The optional package openopt-0.24.spkg
is now in the optional packages repository at
http://www.sagemath.org/packages/optional/openopt-0.24.spkg
comment:4 follow-up: 5 Changed 14 years ago by
Merged in: | sage-4.1.1.alpha0 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Summary: | [with patch, positive review] make openopt an optional spkg → [with patch, needs work] make openopt an optional spkg |
After uncompressing
http://sage.math.washington.edu/home/wstein/patches/openopt-0.24.spkg
and doing hg status
, I see lots of changes haven't been checked in. So I'm reopening this ticket. All changes need to be checked in via Mercurial. But note that the openopt project uses SVN for source code management.
comment:5 Changed 14 years ago by
Summary: | [with patch, needs work] make openopt an optional spkg → [with patch, needs review] make openopt an optional spkg |
---|
Replying to mvngu:
After uncompressing
http://sage.math.washington.edu/home/wstein/patches/openopt-0.24.spkg
and doing
hg status
, I see lots of changes haven't been checked in.
No, that's wrong. Everything was checked in. The problem is that there was no hgignore, so all possible files that could get added to the repo (i.e. the stuff in src) got listed. I've added an .hgignore and rebuilt the spkg then posted it again in the optional package repo.
comment:6 Changed 14 years ago by
installs fine on kbuntu 9.04/32bit /w sage 4.1. I'm able to run an arbitrary example from the openopt website as a test problem. It uses the "ralg" solver provided by openopt.
preparser(False) from numpy import * from openopt import NLP n = 10 an = arange(n) # array [0, 1, 2, ..., n-1] x0 = n+15*(1+cos(an)) f = lambda x: (x**2).sum() + sqrt(x**3-arange(n)**3).sum() df = lambda x: 2*x + 0.5*3*x**2/sqrt(x**3-arange(n)**3) c = lambda x: an**3 - x**3 dc = lambda x: diag(-3 * x**2) lb = arange(n) p = NLP(f, x0, df=df, lb=lb, c=c, dc=dc, iprint = 100, maxIter = 10000, maxFunEvals = 1e8) r = p.solve('ralg') # expected r.xf = [0, 1, 2, ..., n-1]
sage: r = p.solve('ralg') ----------------------------------------------------- solver: ralg problem: unnamed goal: minimum iter objFunVal log10(maxResidual) 0 9.129e+03 -100.00 100 4.104e+03 -100.00 169 2.878e+02 -100.00 istop: 3 (|| X[k] - X[k-1] || < xtol) Solver: Time Elapsed = 2.41 CPU Time Elapsed = 1.88 objFunValue: 287.75368 (feasible, max constraint = 0) sage: # expected r.xf = [0, 1, 2, ..., n-1] sage: r.xf array([ 0.5964556 , 1.00355187, 2.00415294, 3.00156818, 4.0012493 , 5.00080644, 6.00036981, 7.00052146, 8.00016061, 9.00015341])
comment:7 Changed 14 years ago by
What other tests need to be run before this can be given a positive review?
comment:8 Changed 14 years ago by
Reviewers: | David Joyner → David Joyner, Harald Schilly |
---|
Well, I've never reviewd a spkg before. So far as I can tell everything works as expected and therefore green light from me. Everything is only Python, and I think we can assume that it works on all platforms and there are no interferences with other parts of Sage, too.
comment:9 Changed 14 years ago by
Summary: | [with patch, needs review] make openopt an optional spkg → [with patch, positive review] make openopt an optional spkg |
---|
Okay, me too. I'll change it to positive review then.
comment:10 Changed 14 years ago by
Merged in: | → Sage 4.1.1.rc0 |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
Merged in the optional spkg repository on the Sage website.
This installs fine in 4.0.2.rc0 on ubuntu 9.04 amd64. Running tests now.