Printing and casting parametrized variables

11 views
Skip to first unread message

Andrés Cotorruelo Jiménez

unread,
Jul 17, 2019, 1:53:31 PM7/17/19
to YALMIP
Greetings Johan,

I am currently working with the sum-of-squares module of YALMIP. More precisely, I am working with parametrized polynomial variables. Once solved, in order to evaluate this parametrized polynomial, are there any ways to cast this polynomial to any other classes, say, a sym object? I tried a less "elegant" approach: calling sdisplay and simply evaluating it in the MATLAB console, but it won't work since sdisplay doesn't show the numerical values of the coefficients (known issue in some cases, as far as I know from the documentation). Am I missing something or should I code a casting function myself? Thanks in advance.

Johan Löfberg

unread,
Jul 17, 2019, 2:04:29 PM7/17/19
to YALMIP
There is no direct command, and I would guess sdisplay(replace(f,parameters,value(parameters))) would be the start you need
Reply all
Reply to author
Forward
0 new messages