Choquet Integrals Tester.
More...
#include <rtestchoquet.h>
Choquet Integrals Tester.
The RTestChoquet class allows to find the parameters of one or more Choquet integrals that optimize a given cost function.
Constructor.
- Parameters
-
nbchoquets | Number of Choquet integrals to optimize. |
int GetMaxAbsVal |
( |
void |
| ) |
const |
The method returns the maximum absolute value of the parameters of the current run.
void SetNbCriteria |
( |
size_t |
choquet, |
|
|
size_t |
nb |
|
) |
| |
Set the number of criteria for a given Choquet integral.
- Parameters
-
choquet | Identifier of the Choquet integral. |
nb | Number of parameters. |
size_t GetNbCriteria |
( |
size_t |
choquet | ) |
const |
Get the number of criteria for a given Choquet integral.
- Parameters
-
choquet | Identifier of the Choquet integral. |
- Returns
- the number of criteria.
size_t GetviId |
( |
size_t |
id, |
|
|
size_t |
i |
|
) |
| const |
Get the identifier of a given Shapley index for a particular Choquet integral.
- Parameters
-
choquet | Identifier of the Choquet integral. |
i | Identifier of the criteria. |
- Returns
- the identifier.
size_t GetIijId |
( |
size_t |
id, |
|
|
size_t |
i, |
|
|
size_t |
j |
|
) |
| const |
Get the identifier of an interaction index for a particular Choquet integral.
- Parameters
-
choquet | Identifier of the Choquet integral. |
i | Identifier of the first criteria. |
j | Identifier of the second criteria. |
- Returns
- the identifier.
Get the best solution computed.
- Returns
- a pointer.
double vi |
( |
size_t |
id, |
|
|
size_t |
i |
|
) |
| const |
Get the value of a given Shapley index for a particular Choquet integral of the best solution computed.
- Parameters
-
id | Identifier of the Choquet integral |
i | Identifier of the criteria. |
- Returns
- the Shapley index.
double Iij |
( |
size_t |
id, |
|
|
size_t |
i, |
|
|
size_t |
j |
|
) |
| const |
Get the value of an interaction index for a particular Choquet integral of the best solution computed.
- Parameters
-
id | Identifier of the Choquet integral |
i | Identifier of the first criteria. |
j | Identifier of the second criteria. |
- Returns
- the interaction index.
double GetComputedTime |
( |
void |
| ) |
const |
Get the computed time of the last run.
- Returns
- the elapsed time in seconds.
size_t GetNbNodesEvaluated |
( |
void |
| ) |
const |
Get the number of nodes evaluated during the last run.
- Returns
- the number of nodes.
virtual void Init |
( |
void |
| ) |
|
|
privatevirtual |
Compute the cost function to optimize for a given solution of parameter. This cost must be in [0,1].
This function must be overridden by inherited classes.
- Parameters
-
prop | Propagator that holds the solution to evaluate. |
- Returns
- the value of the cost function.
Add eventually some constraints between the criteria.
- Parameters
-
Run the tester.
- Parameters
-
dom | Domain of the parameter (numbers after the comma). |
Print the parameter values of the current solution.
- Parameters
-
title | Title to print (can be RString::Null). |
output | If not null, print the results in a text file. |
screen | Specify if the results must be printed on the standard output. |
Number of Choquet integrals to optimize.
Structure containing information on each Choquet integral.
Domain of the parameters. A domain of 2 supposes each parameters may have two digits after the comma.
Maximum value of the parameters.
Specify if the class was already initialized or not.
Number of elapsed seconds of the last search.
Current optimal solution found.
Search engine used to navigate in the tree.
Total number of Shapley indexes to find.
Total number of interaction indexes to find.