----------------------------------------------------------------------- -- (C) ESA-ESTEC, Propulsion & Aerothermodynamics Division -- -- FILE NAME: MaxECOSIMPRO4.el -- LIBRARY: FLUID_FLOW_1D -- DESCRIPTION: Declares a C++ external class linked to the MAX -- optimisation code. -- 15/01/2008 Version 1.0 -- AUTHOR: Louagie Thomas, CENAERO -- VERIFIED: M.D.R., TEC-MPA, ESA-ESTEC. -- APPROVED: J.S., TEC-MPA, ESA-ESTEC. ------------------------------------------------------------------------ EXTERN CLASS ExternalOptimizer METHODS EXTERN METHOD NO_TYPE Optimize( FUNC_PTR fcn, -- function to be optimized IN INTEGER nDesignVariables, -- number of design variables OUT REAL designVariables[], -- initial values of the design variables OUT REAL designVariablesLower[], -- lower bounds of the design variables OUT REAL designVariablesUpper[], -- upper bounds of the design variables IN INTEGER nResponseVariables, -- number of response variables (= results computed by the function "fcn") IN INTEGER nObjectives, -- number of objectives OUT INTEGER objectiveType[], -- type of objective (0: minimize ; 1: maximize) IN INTEGER nConstraints, -- number of constraints OUT INTEGER constraintType[], -- type of constraint (0: lower bound; 1: upper bound) OUT REAL constraintBound[], -- value of the constraint bounds OUT REAL solutionSet[], -- solution IN INTEGER optimizationAlgorithm, -- algorithm (1: 1-objective not coupled with approximation; -- 2: 1-objective coupled with approximation; -- 3: multiobjective not coupled with approximation; -- 4: multiobjective coupled with approximation) IN INTEGER reproductionCycleCount, -- number of generations of the genetic algorithm IN INTEGER populationSize, -- size of the population in the genetic algorithm IN INTEGER designLoopCount, -- number of design loops in the GAs coupled with approximation IN INTEGER initialDatabaseStrategy -- should be set to 1 if an existing database has to be used ) END CLASS INCLUDE "MaxEcosimPro4.h" IN "MaxECOSIMPRO4.lib"