Оцените неопределенные элементы заменой

Можно сделать замены на неопределенные элементы в неопределенных матрицах и моделях с помощью usubs. Выполнение так полезно для оценки неопределенных объектов в особых значениях неопределенных параметров, или для выборки неопределенных объектов в нескольких значениях параметров.

Например, создайте неопределенную матрицу тремя неопределенными параметрами.

a = ureal('a',3);
b = ureal('b',10,'Percentage',20);
c = ureal('c',3,'Percentage',40);
M = [-a, 1/b; b, a+1/b; 1, c]
M =

  Uncertain matrix with 3 rows and 2 columns.
  The uncertainty consists of the following blocks:
    a: Uncertain real, nominal = 3, variability = [-1,1], 2 occurrences
    b: Uncertain real, nominal = 10, variability = [-20,20]%, 3 occurrences
    c: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences

Type "M.NominalValue" to see the nominal value, "get(M)" to see all properties, and "M.Uncertainty" to interact with the uncertain elements.

Замените всеми экземплярами неопределенного действительного параметра a со значением 4. Эта операция приводит к umat содержа только два неопределенных действительных параметра, b и c.

M2 = usubs(M,'a',4)
M2 =

  Uncertain matrix with 3 rows and 2 columns.
  The uncertainty consists of the following blocks:
    b: Uncertain real, nominal = 10, variability = [-20,20]%, 3 occurrences
    c: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences

Type "M2.NominalValue" to see the nominal value, "get(M2)" to see all properties, and "M2.Uncertainty" to interact with the uncertain elements.

Можно заменить все экземпляры одного неопределенного действительного параметра с другим. Например, замените все экземпляры b в M неопределенным параметром a. Получившийся umat содержит только параметры a и c, и имеет два дополнительных случаев a, по сравнению с M.

M3 = usubs(M,'b',M.Uncertainty.a)
M3 =

  Uncertain matrix with 3 rows and 2 columns.
  The uncertainty consists of the following blocks:
    a: Uncertain real, nominal = 3, variability = [-1,1], 5 occurrences
    c: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences

Type "M3.NominalValue" to see the nominal value, "get(M3)" to see all properties, and "M3.Uncertainty" to interact with the uncertain elements.

Затем оцените M по номинальной стоимости a и случайное значение b.

M4 = usubs(M,'a','NominalValue','b','Random')
M4 =

  Uncertain matrix with 3 rows and 2 columns.
  The uncertainty consists of the following blocks:
    c: Uncertain real, nominal = 3, variability = [-40,40]%, 1 occurrences

Type "M4.NominalValue" to see the nominal value, "get(M4)" to see all properties, and "M4.Uncertainty" to interact with the uncertain elements.

Используйте usample команда, чтобы сгенерировать несколько случайных экземпляров umat, uss, или ufrd неопределенные объекты. Смотрите Генерируют Выборки Неопределенных Систем для получения дополнительной информации.

Смотрите также

| | | |

Похожие темы

Для просмотра документации необходимо авторизоваться на сайте