% Global variables in index definition files

% Definition of x vector (Var)

%Nober of components in a process stream
global NC        % Number of components
global NVar      % Number of variables
global Sv        % Variable scaling matrix
global Meas      % Measurement vector
global MeasStd   % Measurement standard deviation
global MeasU     % Measurement incident matrix

global VarRec    % Reconciled values

% 1. Process streams
% Number of process streams: NStr
% Each stream uses NC+3 elements in the x vextor
% 1:NC  : Molar composition
% NC+1  : Molar flow        
% NC+2  : Temparature       
% NC+3  : Pressure          
global NStr

% 2. Reactors
% Number of Reactors: NCSTR
% Each reactor uses 1 elements in the x vextor
% 1     : Catalyst efficiency factor
global NCSTR

% 3. Heaters
% Number of Heaters: NHtr
% Each heater uses 2 elements in the x vextor
% 1     : Heater duty
global NHtr

% 4. Compressors
% Number of Compressors: NCpr
% Each compressor uses 3 elements in the x vextor
% 1     : Compressor work         
% 2     : Compressor efficiency   
% 3     : Compressor isentropic outlet temperature
global NCmp

% 5. Heatexchanger
% Number of Heatexchangers: NHex
% Each heater uses 1 elements in the x vextor
% 1     : Duty
global NHex

% 6. Condensers (Partial)
% Number of Partial Condenser: NCon
% Each heater uses 1 elements in the x vextor
% 1     : Duty
global NCon

% 7. Special heat exchanger case (E-1401)
% Number of special heat exchangers: NHex2
% Each heat exchanger uses 2 elements in the x vector
% 1    : Duty
% 2    : Txi (mixing outlet temperature)
% 3    : U   heat transfer coefficient
global NHex2

% 8. Special heat exchanger case (E-1402 and D-1405)
% Number of special heat exchangers: NHex3
% Each heat exchanger uses 3 elements in the x vector
% 1    : Duty
% 2    : Fcw   Coolingwater flow
% 3    : Tcwi  Coolingwater inlet temperarure
% 4    : Tcwo  Coolingwater outlet temperarure
% 5    : U     heat transfer coefficient
global NHex3

% 9. Dummy unit model for constraint value calculation
% Number of Constr models, NConstr 
% Variables
% 1    : RON
% 2    : H2/HC
global NConstr

% Turns scaling on/off
global Unscaled

% Turns scaling calculations on/off
global EvalScale

