Overview
Comment:Now correctly handles outputs with index >1
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 128b9fc8ba74e9386763f4e3bfb624f06eb293929b21e3942647cba48377109d
User & Date: gawthrop@users.sourceforge.net on 2002-09-11 14:24:02
Other Links: branch diff | manifest | tags
Context
2002-09-11
14:27:37
Handle constraints on multiple variables. check-in: 6279a162f8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:24:02
Now correctly handles outputs with index >1 check-in: 128b9fc8ba user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:22:42
Deletes limits at inf and -inf check-in: cd14981d1e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/control/PPP/ppp_output_constraint.m from [fb545fc4ba] to [f1e5ba3860].

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  

  ## Compute Gamma 
  Gamma = [];
  for i=1:n_U
    U = zeros(n_U,1); U(i,1) = 1; # Set up U_i
    y_i = ppp_ystar (A,B,C,D,x_0,A_u,U,Tau);# Compute y* for ith input for each tau
    y_i = y_i(:,i_y:n_y:n_y*n_tau); # Pluck out output i_y
    Gamma = [Gamma [-y_i';y_i']]; # Put in parts for Min and max
  endfor

  ## Compute gamma
  gamma = [-Min';Max'];

endfunction







|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  

  ## Compute Gamma 
  Gamma = [];
  for i=1:n_U
    U = zeros(n_U,1); U(i,1) = 1; # Set up U_i
    y_i = ppp_ystar (A,B,C,D,x_0,A_u,U,Tau);# Compute y* for ith input for each tau
    y_i = y_i(i_y,:); # Pluck out output i_y
    Gamma = [Gamma [-y_i';y_i']]; # Put in parts for Min and max
  endfor

  ## Compute gamma
  gamma = [-Min';Max'];

endfunction


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]