19 #ifndef FGSimplexTrim_H_ 20 #define FGSimplexTrim_H_ 22 #include "initialization/FGTrimmer.h" 23 #include "math/FGStateSpace.h" 26 #include "models/FGAircraft.h" 27 #include "models/propulsion/FGEngine.h" 28 #include "models/propulsion/FGTurbine.h" 29 #include "models/propulsion/FGTurboProp.h" 30 #include "math/FGNelderMead.h" 42 template <
class varType>
43 void prompt(
const std::string & str, varType & var)
45 std::cout << str +
" [" << std::setw(10) << var <<
"]\t: ";
46 if (std::cin.peek() !=
'\n')
49 std::cin.ignore(1000,
'\n');
57 std::ofstream _outputFile;
61 _outputFile((fileName + std::string(
"_simplexTrim.log")).c_str()),
67 void eval(
const std::vector<double> &v)
69 _outputFile << _trimmer->eval(v) << std::endl;;
79 #endif //FGSimplexTrim_H_
Encapsulates the JSBSim simulation executive.