%% Create Optimization Expressions by Arithmetic Operations
% Create optimization expressions by arithmetic operations on optimization variables.

x = optimvar('x',3,2);
expr = sum(sum(x))

%

f = [2,10,4];
w = f*x;
show(w)

%
% Copyright 2012-2019 The MathWorks, Inc.