This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Resolution, Solution and Map
Percy Mamedy edited this page Jun 8, 2016
·
3 revisions
A Resolution object will contain an array of Solution objects and a Map object if generateVisualization
was set to true
when calling getDilemma
method on Engine. See structure
Check for solutions in the Resolution object
$resolution->hasSolutions();
Find a particular solution using the Option object key
//Single Solution Object
$solution = $resolution->findSolution($key);
Get all solutions from Resolution
//Array of Solution objects
$solutions = $resolution->getAllSolutions(true);
Get only best solutions
//Array of Solution objects
$solutions = $resolution->getFavouredSolutions(true);
Get solutions marked as incomplete
//Array of Solution objects
$solutions = $resolution->getIncompleteSolutions(true);
Get solutions that are marked as criteria unmet
//Array of Solution objects
$solutions = $resolution->getUnmetCategoricalPreferenceSolutions(true);
The true
parameter is passed so that we get a array of Solution objects if omitted we will get an associative array.
Get all solutions that shadow a particular solution.
//Array of Solution objects
$solutions = $resolution->getSolutionsShadowing($key);
Get all solutions that are being shadowed by a particular solution
//Array of Solution objects
$solutions = $resolution->getSolutionsBeingShadowedBy($key);
//Check for Map in Resolution
$resolution->hasMap();
//Get Map object from Resolution
$map = $resolution->getMap();