Actual source code: taoabcapp.h

      1: #ifndef TAOABCAPP_H
      2: #define TAOABCAPP_H

     4:  #include taoappobject.h
     5:  #include src/vector/tvecdouble.h

      7: class TaoABCApplication: public TaoApplication{

      9:  private:

     11:  public:
     12:   TaoABCApplication();
     13:   ~TaoABCApplication();

     15:   TaoVecDoubleArray *taox;   /* The Variable Vector */
     16:   int SetNumberOfVariables(int);
     17:   int GetSolution(double*&, int&);

     19:   /* Function and Gradient */
     20:   int GetVariableVector(TaoVec **);
     21:   int EvaluateObjectiveFunction(TaoVec *, double *);
     22:   int EvaluateGradient(TaoVec *, TaoVec *);
     23:   int EvaluateObjectiveAndGradient(TaoVec *xx, double *ff, TaoVec *gg);

     25:   virtual int  ComputeObjectiveAndGradient(double*,int,double*,double *)=0;

     27:   /* Set Variable Bounds */
     28:   int EvaluateVariableBounds(TaoVec *xxll, TaoVec *xxuu);
     29:   virtual int ComputeVariableBounds(double *xl, double *xu, int n);

     31:   /* Initialize Starting Point */
     32:   int InitializeVariables(TaoVec *x);
     33:   virtual int StartingPoint(double *x, int n);

     35: };

     37: #endif