FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL > Interface Template Reference

A UtilitySolutionSpace whose utilities implement AddableLimited. More...

Inheritance diagram for frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >:

Public Member Functions

UtilitySolutionSpaceLimited< V, U, UL > join (UtilitySolutionSpace< V, U > space)
 Binary join operation.
UtilitySolutionSpaceLimited< V, U, UL > joinMinNCCCs (UtilitySolutionSpace< V, U > space)
 A version of the join method that minimizes the utility lookups in the caller space and the input space.
UtilitySolutionSpaceLimited< V, U, UL > blindProject (String varOut, boolean maximize)
 Projects out the input variable without computing the corresponding optimal assignments.
UtilitySolutionSpaceLimited< V, U, UL > blindProject (String[] varsOut, boolean maximize)
 Projects out the input variables without computing the corresponding optimal assignments.
UL blindProjectAll (boolean maximize)
 Projects out all variables without computing the corresponding optimal assignments.
UtilitySolutionSpaceLimited< V, U, UL > min (String variable)
 Project out a variable by minimizing over it, without computing the argmin.
UtilitySolutionSpaceLimited< V, U, UL > max (String variable)
 Project out a variable by maximizing over it, without computing the argmax.
UtilitySolutionSpaceLimited< V, U, UL > slice (String var, V val)
UtilitySolutionSpaceLimited< V, U, UL > resolve ()
UtilitySolutionSpaceLimited< V, U, UL > resolve (boolean sparse)
Public Member Functions inherited from frodo2.solutionSpaces.BasicUtilitySolutionSpace< V, UL >
BasicUtilitySolutionSpace< V, U > clone ()
BasicUtilitySolutionSpace< V, U > resolve ()
String prettyPrint (U ignoredUtil)
 A human-friendly version of toString().
getUtility (V[] variables_values)
 Returns an object representing the utility value corresponding to the provided variables values representing a solution.
Class< U > getClassOfU ()
boolean setUtility (V[] variables_values, U utility)
 Sets the utility value corresponding to a given assignment to variables.
void setDefaultUtility (U utility)
 Sets the default utility value.
getDefaultUtility ()
void setInfeasibleUtility (U utility)
 Sets the utility associated with infeasible solutions.
void augment (V[] variables_values, U utility_value)
 Augments this BasicUtilitySolutionSpace with a new combination of variables values associated with a given utility.
boolean equivalent (BasicUtilitySolutionSpace< V, U > space)
 Returns whether the input BasicUtilitySolutionSpace represents the same space as this BasicUtilitySolutionSpace.
boolean isIncludedIn (BasicUtilitySolutionSpace< V, U > space)
 Checks if this BasicUtilitySolutionSpace is included in the provided BasicUtilitySolutionSpace.
BasicUtilitySolutionSpace< V, U > changeVariablesOrder (String[] variables_order)
 Returns a new BasicUtilitySolutionSpace by changing the order of the variables of this BasicUtilitySolutionSpace.
BasicUtilitySolutionSpace< V, U > slice (String[] variables_names, V[][] sub_domains)
 Returns a slice of this BasicUtilitySolutionSpace.
BasicUtilitySolutionSpace< V, U > compose (String[] vars, BasicUtilitySolutionSpace< V, ArrayList< V > > substitution)
 Substitutes some of the variables in this utility space with functions.
SparseIterator< V, U > sparseIter ()
Iterator< V, U > iterator ()

Detailed Description

A UtilitySolutionSpace whose utilities implement AddableLimited.

Author
Thomas Leaute
Parameters
<V>the type used for variable values
<U>the type used for Addable utilities
<UL>the type used for AddableLimited utilities

Member Function Documentation

◆ blindProject() [1/2]

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.blindProject ( String varOut,
boolean maximize )

Projects out the input variable without computing the corresponding optimal assignments.

Parameters
varOutthe variable to project out
maximizewhether to minimize or maximize
Returns
the optimized UtilitySolutionSpaceLimited

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ blindProject() [2/2]

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.blindProject ( String[] varsOut,
boolean maximize )

Projects out the input variables without computing the corresponding optimal assignments.

Parameters
varsOutthe variables to project out
maximizewhether to minimize or maximize
Returns
the optimized UtilitySolutionSpaceLimited

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ blindProjectAll()

UL frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.blindProjectAll ( boolean maximize)

Projects out all variables without computing the corresponding optimal assignments.

Parameters
maximizewhether to minimize or maximize
Returns
the optimized utility

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ join()

◆ joinMinNCCCs()

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.joinMinNCCCs ( UtilitySolutionSpace< V, U > space)

A version of the join method that minimizes the utility lookups in the caller space and the input space.

Parameters
spacethe UtilitySolutionSpace to join with this one
Returns
the joint UtilitySolutionSpaceLimited
See also
UtilitySolutionSpaceLimited#join(UtilitySolutionSpace)

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ max()

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.max ( String variable)

Project out a variable by maximizing over it, without computing the argmax.

Parameters
variablethe variable to be projected out
Returns
the optimized UtilitySolutionSpaceLimited

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ min()

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.min ( String variable)

Project out a variable by minimizing over it, without computing the argmin.

Parameters
variablethe variable to be projected out
Returns
the optimized UtilitySolutionSpaceLimited

Implemented in frodo2.solutionSpaces.hypercube.HypercubeLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.

◆ resolve() [1/2]

◆ resolve() [2/2]

◆ slice()

UtilitySolutionSpaceLimited< V, U, UL > frodo2.solutionSpaces.UtilitySolutionSpaceLimited< V extends Addable< V >, U extends Addable< U >, UL extends AddableLimited< U, UL >.slice ( String var,
V val )

The documentation for this interface was generated from the following file: