%==========================================================================    
% File Name     : <FindActiveSets.m>                                           
% Usage         : [ActiveSet, Cand] = FindActiveSets(sol, lam, A, b, EqS, isLP)
% Description   : This subroutine finds the active sets associated with the    
% solution 'sol' and current active set 'ActiveSet' of a LP or QP problem.     
% Note that in case there is an ambiguity regarding the active set, the        
% second output 'Cand' reports all other possible candidate active sets.       
%                                                                              
% The inputs are: 'sol' [the solution point 'x']; 'lam' [the values of the     
% Lagrangian multipliers]; 'A'; 'b' [the constraints]; 'EqS' [the indices      
% of 'A' and 'b' which are equality constraints]; isLP [if the problem is a    
% mp-LP].                                                                      
%--------------------------------------------------------------------------    
% Author        : Richard Oberdieck, Nikolaos A. Diangelakis,                  
%                 Efstratios N. Pistikopoulos                                  
% Office        : Engineering Research Building, Texas A&M University, USA     
% Mail          : paroc@tamu.edu                                               
%--------------------------------------------------------------------------    
% Last Revision | Author  | Description                                        
%---------------+---------+------------------------------------------------    
% 21-Apr-2015   | RO      | Initial Version (based on findactivesetsMS)        
%---------------+---------+------------------------------------------------    
% 11-Aug-2015   | RO      | Final Version                                      
%---------------+---------+------------------------------------------------    
% 23-Nov-2015   | RO      | Introduction of 'Cand' output                      
%==========================================================================    
