Skip to content

improve_cond.m

Basic Information

  SYNTAX: [T,condition] = improve_cond(A,B,C,D,condition_fn,old_T,n_iterations)

  PURPOSE:  Improve the condition of the system through a state transformation
  T, where condition is defined
  by condition_fn.  For example, condition of A or condition of the block
       A  |  B
      ---------
       C  |  D

  INPUT:
    A,B,C,D   = system to improve condition for
    condition_fn = string = function to return a condition number
            (e.g. containing cond(A); see condition_A.m and
            condition_ABCD.m for examples.)
    old_T        = square matrix (size A) = initial value for T (optional)
    n_iterations = max number of iterations in fmin u


  OUTPUT:
    T = state transformation which give minimum value of condition
    condition = value of condition achieved

Dependencies