Overview
Comment:Prunes inf and -inf from constraint list.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 71ec8badbfff5f074251f2b97b5ad46fa7d612eed8e526338cd8ebe92dad12e6
User & Date: gawthrop@users.sourceforge.net on 2002-11-04 23:40:04
Other Links: branch diff | manifest | tags
Context
2002-11-04
23:41:41
Added "test" parameter to call to qp_mu. (Adrian's QP interior point alg.) check-in: e495f1f8c5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
23:40:04
Prunes inf and -inf from constraint list. check-in: 71ec8badbf user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2002-11-01
04:03:31
Documentation fix check-in: 2c3a1edb15 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

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

46
47
48
49
50
51
52
53
54
55








56
57
58
59
60








61
62
63
  endif
  

  ## 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









|

|
>
>
>
>
>
>
>
>



|

>
>
>
>
>
>
>
>



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  endif
  

  ## 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
    Gamma_i = [];
    if (Min>-inf)
      Gamma_i = [Gamma_i; -y_i']; # Min part of column
    endif
    if (Max<inf)
      Gamma_i = [Gamma_i;  y_i'];	# Add column for Max
    endif
    Gamma = [Gamma Gamma_i]; # Put in parts for Min and max
  endfor

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

  gamma = [];
  if (Min>-inf)
    gamma = [gamma; -Min'];
  endif
  if (Max<inf)
    gamma = [gamma; Max'];
  endif
  
endfunction



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