Choquet Integrals Space. More...

#include <roptimizechoquet.h>

Inheritance diagram for ROptimizeChoquet:
[legend]
Collaboration diagram for ROptimizeChoquet:
[legend]

Public Member Functions

 ROptimizeChoquet (RTestChoquet *test, size_t nbc, size_t nbi, int max)
 
 ROptimizeChoquet (bool share, ROptimizeChoquet &s)
 
Gecode::IntVar & vi (size_t id, size_t i, size_t dummy)
 
Gecode::IntVar & Iij (size_t id, size_t i, size_t j, size_t dummy)
 
double vi (size_t id, size_t i) const
 
double Iij (size_t id, size_t i, size_t j) const
 
double GetCost (void) const
 
virtual Gecode::Space * copy (bool share)
 
virtual Gecode::FloatVar cost (void) const
 
virtual ~ROptimizeChoquet (void)
 
void print (void) const
 

Protected Attributes

RTestChoquetTest
 
Gecode::IntVarArray v
 
Gecode::IntVarArray I
 
Gecode::FloatVar Cost
 

Detailed Description

Choquet Integrals Space.

The ROptimizeChoquet provides a research space when some Choquet integral must be optimized.

Constructor & Destructor Documentation

ROptimizeChoquet ( RTestChoquet test,
size_t  nbc,
size_t  nbi,
int  max 
)

Constructor.

Parameters
testTester.
nbcTotal number of Shapley indexes to find.
nbiTotal number of interaction indexes to find.
maxMaximum value of the parameters.
ROptimizeChoquet ( bool  share,
ROptimizeChoquet s 
)

Copy constructor.

Parameters
shareInternal parameter for GeCode.
sSolution to copy.
virtual ~ROptimizeChoquet ( void  )
virtual

Destructor.

Member Function Documentation

Gecode::IntVar& vi ( size_t  id,
size_t  i,
size_t  dummy 
)

Get the value of a given Shapley index for a particular Choquet integral.

Parameters
idIdentifier of the Choquet integral
iIdentifier of the criteria.
dummyThis parameter is just used to distinct methods. Its values has no importance.
Returns
the Shapley index.
Gecode::IntVar& Iij ( size_t  id,
size_t  i,
size_t  j,
size_t  dummy 
)

Get the value of an interaction index for a particular Choquet integral.

Parameters
idIdentifier of the Choquet integral
iIdentifier of the first criteria.
jIdentifier of the second criteria.
dummyThis parameter is just used to distinct methods. Its values has no importance.
Returns
the interaction index.
double vi ( size_t  id,
size_t  i 
) const

Get the value of a given Shapley index for a particular Choquet integral.

Parameters
idIdentifier of the Choquet integral
iIdentifier 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.

Parameters
idIdentifier of the Choquet integral
iIdentifier of the first criteria.
jIdentifier of the second criteria.
Returns
the interaction index.
double GetCost ( void  ) const

Get the value of the cost function to optimize.

Returns
the cost value.
virtual Gecode::Space* copy ( bool  share)
virtual

Copy function.

Parameters
shareInternal parameter for GeCode.
Returns
a pointer to the space created.
virtual Gecode::FloatVar cost ( void  ) const
virtual

Get the cost function to optimize.

Returns
Cost.
void print ( void  ) const

Member Data Documentation

RTestChoquet* Test
protected

The tester.

Gecode::IntVarArray v
protected

The Shapley indexes to optimize.

Gecode::IntVarArray I
protected

The interaction indexes to optimize.

Gecode::FloatVar Cost
protected

Cost to maximize.