Revision 1892

trunk/src/nh99/unused/admodhd.h (revision 1892)
1
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 *
7
 * ADModelbuilder and associated libraries and documentations are
8
 * provided under the general terms of the "BSD" license.
9
 *
10
 * License:
11
 *
12
 * Redistribution and use in source and binary forms, with or without
13
 * modification, are permitted provided that the following conditions are
14
 * met:
15
 *
16
 * 1. Redistributions of source code must retain the above copyright
17
 * notice, this list of conditions and the following disclaimer.
18
 *
19
 * 2.  Redistributions in binary form must reproduce the above copyright
20
 * notice, this list of conditions and the following disclaimer in the
21
 * documentation and/or other materials provided with the distribution.
22
 *
23
 * 3.  Neither the name of the  University of California, Otter Research,
24
 * nor the ADMB Foundation nor the names of its contributors may be used
25
 * to endorse or promote products derived from this software without
26
 * specific prior written permission.
27
 *
28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
 *
40
 */
41
/**
42
 * \file
43
 * Description not yet available.
44
 */
45
#ifndef __ADMOD3D__
46
#define __ADMOD3D__
47

  
48
#if defined(__GNUC__)
49
  #if (__GNUC__ < 3)
50
    #pragma interface
51
  #endif
52
#else
53
  #pragma interface
54
#endif
55

  
56
#include <admodel.h>
57

  
58
/**
59
 * Description not yet available.
60
 * \param
61
 */
62
class param_init_d3array: public named_dvar3_array,public initial_params
63
{
64
public:
65
  virtual void set_value(const dvar_vector& x, const int& ii, const dvariable& pen);
66
  virtual void copy_value_to_vector(const dvector& x, const int& ii);
67
  virtual void restore_value_from_vector(const dvector&, const int&);
68
  virtual void set_value_inv(const dvector& x, const int& ii);
69
  virtual int size_count(void);
70
  virtual void save_value(void);
71
  virtual void save_value(const ofstream& ofs, int prec);
72
  virtual void restore_value(const ifstream& ifs);
73
  void report_value(void);
74
  //virtual void read_value(void);
75
  virtual const char * label(void);
76
  virtual void sd_scale(const dvector& d, const dvector& x, const int& ii);
77
  virtual void hess_scale(const dvector& d, const dvector& x, const int& ii){};
78

  
79
public:
80
  void allocate(int smin,int smax,int rmin,int rmax,int cmin,int cmax,
81
    int phase_start=1,const char * = "UNNAMED");
82
  void allocate(int smin,int smax,int rmin,int rmax,int cmin,int cmax,
83
    const char * = "UNNAMED");
84
  void allocate(int smin, int smax, const ivector& rmin, const ivector& rmax,
85
    int cmin,int cmax,int phase_start=1,const char * = "UNNAMED");
86
  void allocate(int smin, int smax, const ivector& rmin, const ivector& rmax,
87
    int cmin,int cmax, const char * = "UNNAMED");
88
  void allocate(int smin, int smax, const ivector& rmin, int rmax, int cmin,
89
    int cmax,int phase_start=1,const char * = "UNNAMED");
90
  void allocate(int smin, int smax, const ivector& rmin, int rmax, int cmin,
91
    int cmax,const char * = "UNNAMED");
92
  void allocate(int smin, int smax, int rmin, const ivector& rmax, int cmin,
93
    int cmax,int phase_start=1,const char * = "UNNAMED");
94
  void allocate(int smin, int smax, int rmin, const ivector& rmax, int cmin,
95
    int cmax,const char * = "UNNAMED");
96
  param_init_d3array(void);
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff