Actual source code: taofloatapp.h

      1: #ifndef TAOABCFLOATAPP_H
      2: #define TAOABCFLOATAPP_H

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

      7: class TaoABCFloatApplication: public TaoApplication{

      9:  private:

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

     15:   TaoVecFloatArray *taox;   /* The Variable Vector */
     16:   int SetNumberOfVariables(int);
     17:   int GetSolutionAndGradient(float*&, float*&, int&);

     19:   /* Function and Gradient */
     20:   int GetVariableVector(TaoVec **);

     22:   int EvaluateObjectiveFunction(TaoVec *, double *);
     23:   int EvaluateGradient(TaoVec *, TaoVec *);
     24:   int EvaluateObjectiveAndGradient(TaoVec *xx, double *ff, TaoVec *gg);

     26:   virtual int  ComputeObjectiveAndGradient(float*,int,float*,float *)=0;

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

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

     36: };

     38: #endif