%==========================================================================
% File Name     : <EqualitySubstitution.m>
% Usage         : problem = EqualitySubstitution(problem)
% Description   : This function substitutes all equality constraints in the
% problem formulation. Note that only continuous optimization variables are
% substituted. If there are any other equaltiy constraints - either for
% binary optimization variables or parameters - then the algorithm gives
% back problem as empty, as this indicates an ill-defined problem.
%--------------------------------------------------------------------------
% Author        : Richard Oberdieck, Nikolaos A. Diangelakis
% Office        : Giesecke Engineering Research Building, Texas A&M, USA.
% Mail          : paroc@tamu.edu
%--------------------------------------------------------------------------
% Last Revision | Author  | Description
%---------------+---------+------------------------------------------------
% 18-Apr-2016   | RO      | Initial Version
%==========================================================================