A fuzzy logic C++ library
|
Programmaticaly build of FIS of the "shower" problem. More...
Defines | |
#define | STDERR_FILE_NAME "stderr_demo-shower.txt" |
Functions | |
int | main (int, char **argv) |
See demo-shower.cpp. |
Programmaticaly build of FIS of the "shower" problem.
To have a comfortable shower, you need some water that has both:
We define comfort as a variable between:
This is what is shown on the "output" variable.
Builds the fis, saves it, and stops. Returns 0 on success.
#define STDERR_FILE_NAME "stderr_demo-shower.txt" |
Referenced by main().
int main | ( | int | , |
char ** | argv | ||
) |
See demo-shower.cpp.
References slifis::RULE::AddCondition(), slifis::SLIFIS::AddInput(), slifis::SLIFIS::AddRule(), APP_FAILURE, APP_NAME, APP_REGULAR_END, slifis::RULE::ClearConditions(), slifis::SLIFIS::Generate3DPlot(), slifis::SLIFIS::GetRuleBase(), slifis::IO_BIN, slifis::IO_FCL, slifis::IO_XML, slifis::RULE_BASE::Print(), slifis::SLIFIS::Print(), REOPEN_STDERR, slifis::RULE::SetConsequence(), slifis::SLIFIS::SetDefaultIO(), slifis::FUZZY_ROOT::SetMfName(), slifis::FUZZY_ROOT::SetNormalisedSet(), slifis::SLIFIS::SetOutput(), STDERR_FILE_NAME, and slifis::SLIFIS::Write().