File: Gwen.Rout.save

package info (click to toggle)
quadprog 1.5-3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 228 kB
  • ctags: 118
  • sloc: fortran: 682; ansic: 46; makefile: 1
file content (46 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> ## private communication from Gwen (gleday <gleday@few.vu.nl>) via Kurt Hornik
> ## produced an endless loop on some platforms.
> 
> library(quadprog)
> load("bug.RData")
> sol <- solve.QP(Dmat, as.vector(dvec), Amat, bvec, meq=meq)
> print(lapply(sol, zapsmall))
$solution
[1] 1.625775 6.513264 0.564113 0.000000 0.564113 0.000000 0.564113 0.000000
[9] 0.000000

$value
[1] -9.463198

$unconstrained.solution
[1]  4.152656 13.131710  0.530181  0.292590 -1.061152  5.852929  0.484598
[8]  0.000000  0.000000

$iterations
[1] 9 2

$Lagrangian
 [1] 2.0065467 0.2982268 0.0795149 0.0000000 0.0000000 0.3674261 0.0000000
 [8] 0.0000000 0.1754063 0.0000000 0.1754063 0.0000000

$iact
[1]  1  9 11  6  2  3

>