DOpE
noconstraints.h
Go to the documentation of this file.
1 
24 #ifndef NOCONSTRAINT_INTERFACE_H_
25 #define NOCONSTRAINT_INTERFACE_H_
26 
27 #include "constraintinterface.h"
28 
29 namespace DOpE
30 {
37  template<
38  template<template<int, int> class DH, typename VECTOR, int dealdim> class EDC,
39  template<template<int, int> class DH, typename VECTOR, int dealdim> class FDC,
40  template<int, int> class DH, typename VECTOR, int dopedim, int dealdim>
41  class NoConstraints : public ConstraintInterface<EDC, FDC, DH,
42  VECTOR, dopedim, dealdim>
43  {
44  public:
46  ConstraintInterface<EDC, FDC, DH, VECTOR, dopedim, dealdim>()
47  {
48  }
50  {
51  }
52 
53  void
55  const VECTOR& /*control*/,
56  VECTOR& /*constraints*/)
57  {
58  throw DOpEException("This should never be called!",
59  "NoConstraints::EvaluateLocalControlConstraints");
60  abort();
61  }
62  void
63  GetControlBoxConstraints(VECTOR& lb, VECTOR& ub) const
64  {
65  lb = -1.e+20;
66  ub = 1.e+20;
67  }
68  void
70  ConstraintVector<VECTOR>& /*g*/) const
71  {
72  }
73 
74  protected:
75  private:
76 
77  };
78 }
79 
80 #endif
void GetControlBoxConstraints(VECTOR &lb, VECTOR &ub) const
Definition: noconstraints.h:63
Definition: constraintvector.h:48
Definition: noconstraints.h:41
Definition: constraintinterface.h:62
void EvaluateLocalControlConstraints(const VECTOR &, VECTOR &)
Definition: noconstraints.h:54
void PostProcessConstraints(ConstraintVector< VECTOR > &) const
Definition: noconstraints.h:69
~NoConstraints()
Definition: noconstraints.h:49
NoConstraints()
Definition: noconstraints.h:45
Definition: dopeexception.h:35