~ubuntu-branches/ubuntu/trusty/fportfolio/trusty

« back to all changes in this revision

Viewing changes to R/class-fPFOLIOCON.R

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-04 11:36:54 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081204113654-gr832nfs44blp5ph
Tags: 280.74-1
* New upstream release
* Finally uploading as r-cran-rglpk is out of NEW after five weeks

* debian/control: Updated (Build-)Depends: and Suggests:

* debian/control: Set (Build-)Depends: to current R version
* debian/control: Set Standards-Version: to current version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# This library is free software; you can redistribute it and/or
 
3
# modify it under the terms of the GNU Library General Public
 
4
# License as published by the Free Software Foundation; either
 
5
# version 2 of the License, or (at your option) any later version.
 
6
#
 
7
# This library is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR Description. See the 
 
10
# GNU Library General Public License for more details.
 
11
#
 
12
# You should have received a copy of the GNU Library General 
 
13
# Public License along with this library; if not, write to the 
 
14
# Free Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
15
# MA 02111-1307 USA
 
16
 
 
17
 
 
18
################################################################################
 
19
# FUNCTION:                     DESCRIPTION:
 
20
#  'fPORTFOLIOCON'               S4 Portfolio Constraints Class
 
21
################################################################################
 
22
 
 
23
 
 
24
if(FALSE) {
 
25
setClass("fPFOLIOCON", 
 
26
    representation(
 
27
        stringConstraints = "character",
 
28
        boxConstraints = "list",
 
29
        groupEqConstraints = "list",
 
30
        groupMatConstraints = "list",
 
31
        riskBudgetConstraints = "list",
 
32
        boxGroupConstraints = "matrix")  
 
33
)
 
34
}
 
35
 
 
36
 
 
37
# ------------------------------------------------------------------------------
 
38
 
 
39
 
 
40
setClass("fPFOLIOCON", 
 
41
    representation(
 
42
    
 
43
        stringConstraints = "character",
 
44
        
 
45
        minWConstraints = "numeric",
 
46
        maxWConstraints = "numeric",
 
47
        
 
48
        eqsumWConstraints = "matrix",
 
49
        minsumWConstraints = "matrix",
 
50
        maxsumWConstraints = "matrix",
 
51
        
 
52
        minBConstraints = "numeric", 
 
53
        maxBConstraints = "numeric",
 
54
        
 
55
        listFConstraints = "list",
 
56
        minFConstraints = "numeric", 
 
57
        maxFConstraints = "numeric")
 
58
        
 
59
 
60
        
 
61
 
 
62
################################################################################
 
63