%  *********************************************************
%  COPYRIGHT: T. MARLIN AND D. JEWELL
%  FILENAME:  DMC_DATA.M
%  VERSION 2.0
%  LAST UPDATE: DECEMBER 1994
%  DESCRIPTION OF FILE:
%   THIS PROVIDES VALUES FOR PROGRAM DMC DESIGN OPTION
% ********************************************************

%  some parameters which can go in data

  nin = 2;  nout=2  ;

%   set dmc model == plant model

tau1_m = tau1;
tau2_m = tau2;
tauA_m = tauA;
Kp_m   = Kp  ;
DT_m   = DT  ;
gamma_m = gamma     ;

%  enter data for the controller algorithm

  W1 =  1.0 ; W2 = 1.0 ;    % cv weights
  Q1 =  0.02  ; Q2 = 0.02  ;    % delmv weights
  MM = 5            ;       % input horizon
  NN = 16           ;       % output horizon

%  these are values which can be used to test
%  algo without feedback

  DMCSP1 = 1.0 ;
  DMCSP2 = 1.0 ;

%  these are variables used for simulations by DMC

cv1_sim = [ 0 0; 0 0 ];
cv2_sim = [ 0 0; 0 0 ] ;

cv1_pre = [ 0 0; 0 0 ];
cv2_pre = [ 0 0; 0 0 ];

conalgo = 1;     % select the controller algorithm
                 % 1=PID  and 2=DMC

dmccalc = 0.;    % 0=controller not designed










