Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example run fault #17

Open
412222 opened this issue Nov 3, 2024 · 2 comments
Open

example run fault #17

412222 opened this issue Nov 3, 2024 · 2 comments

Comments

@412222
Copy link

412222 commented Nov 3, 2024

pen = SOStab([0;1;0],[1;1;1],[1,2]);
pen.dynamics = [-2pen.x(1)pen.x(2)^2;2pen.x(1)^2pen.x(2);0];
pen.SoS_out(6,40,0.5);
vopen = value(pen.vcoef_outer);
wopen = value(pen.wcoef_outer);
pen.plot_roa([1,2,1],3,'outer',1,"\theta","\omega");
pen.SoS_in(6,40,0.5);
vipen = value(pen.vcoef_inner);
wipen = value(pen.wcoef_inner);
wipen(1) = wipen(1)-1;
if wipen'*wipen > 0.00001
pen.plot_roa([1,2],3,'inner',0,"\theta","\omega");
else
disp("w not relevant")
end

in this example
i can not get the right Outer ROA and the inter ROA
1
maybe i think wory
the result of this example is this?

@412222
Copy link
Author

412222 commented Nov 3, 2024

"I'm sorry, I'm so foolish; I didn't install the SDPT3 solver correctly. My current question is whether it will automatically switch to a solvable solver because I haven't installed the MOSEK solver, yet I can miraculously run it and display the correct images now."

@droste89
Copy link
Owner

droste89 commented Dec 4, 2024

Thanks for your comment. I am not aware of Yalmip switching automatically to the available solver, but it is possible it does. If you have any doubt, you can simply define the solver used by adding, just after the initialization:
pen.solver='sdpt3';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants