JSBSim Flight Dynamics Model
1.0 (02 March 2017)
An Open Source Flight Dynamics and Control Software Library in C++
|
Public Types | |
typedef void(* | PF) (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Pointer to cost function implementation. | |
Public Member Functions | |
Objective (FGFDMExec *fdmex, FGTrimAnalysis *ta, double x) | |
Constructor. | |
~Objective () | |
Destructor. | |
void | CostFunctionFull (long vars, Vector< double > &v, double &f) |
Full Trim cost function. More... | |
void | CostFunctionFullCoordinatedTurn (long vars, Vector< double > &v, double &f) |
Steady Turn Trim cost function, NON-coordinated. More... | |
void | CostFunctionFullTurn (long vars, Vector< double > &v, double &f) |
Steady Turn Trim cost function. More... | |
void | CostFunctionFullWingsLevel (long vars, Vector< double > &v, double &f) |
Wings Level Trim cost function. More... | |
void | CostFunctionLongitudinal (long vars, Vector< double > &v, double &f) |
Longitudinal Trim cost function. More... | |
void | CostFunctionPullUp (long vars, Vector< double > &v, double &f) |
Pullup Trim cost function. More... | |
double | Get_x_val () const |
void | Set_x_val (double new_x) |
Public Attributes | |
map< TrimAnalysisMode, PF > | mpCostFunctions |
Friends | |
void | find_CostFunctionFull (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Full Trim cost function, to be called by optimization method. More... | |
void | find_CostFunctionFullCoordinatedTurn (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Steady Turn Trim cost function, to be called by optimization method. More... | |
void | find_CostFunctionFullTurn (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Steady Turn Trim cost function, to be called by optimization method. More... | |
void | find_CostFunctionFullWingsLevel (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Wings Level Trim cost function, to be called by optimization method. More... | |
void | find_CostFunctionLongitudinal (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Longitudinal Trim cost function, to be called by optimization method. More... | |
void | find_CostFunctionPullUp (long vars, Vector< double > &v, double &f, bool &success, void *t_ptr) |
Wrapping function for the effective Pullup Trim cost function, to be called by optimization method. More... | |
Definition at line 129 of file FGTrimAnalysis.h.
void CostFunctionFull | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Full Trim cost function.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 220 of file FGTrimAnalysis.cpp.
void CostFunctionFullCoordinatedTurn | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Steady Turn Trim cost function, NON-coordinated.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 265 of file FGTrimAnalysis.cpp.
void CostFunctionFullTurn | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Steady Turn Trim cost function.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 280 of file FGTrimAnalysis.cpp.
void CostFunctionFullWingsLevel | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Wings Level Trim cost function.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 235 of file FGTrimAnalysis.cpp.
void CostFunctionLongitudinal | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Longitudinal Trim cost function.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 250 of file FGTrimAnalysis.cpp.
void CostFunctionPullUp | ( | long | vars, |
Vector< double > & | v, | ||
double & | f | ||
) |
Pullup Trim cost function.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
Note: the effective cost function evaluation is performed in a private function
Definition at line 295 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Full Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 106 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Steady Turn Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 163 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Steady Turn Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 182 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Wings Level Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 125 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Longitudinal Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 144 of file FGTrimAnalysis.cpp.
|
friend |
Wrapping function for the effective Pullup Trim cost function, to be called by optimization method.
vars | number ofcontrol varables |
v | reference to a vector containing controls variables |
f | function value |
success | |
t_ptr | the following method is friend rather then member of FGTrimAnalysis because we want our FGTrimAnalysis::DoTrim() to be able to pass pointers to it. |
Note that in the call masked by this methods, the void pointer should be cast to a pointer of the class type.
Definition at line 201 of file FGTrimAnalysis.cpp.