Skip to content

Commit

Permalink
[docs] change transposition to adjoint in YALMIP guide (#3748)
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoms committed May 16, 2024
1 parent 71c7764 commit 9bb40e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/tutorials/transitioning/transitioning_from_matlab.jl
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ robustness_jump(3)
# ```matlab
# function robustness_yalmip(d)
# rho = random_state_pure(d^2);
# # PartialTranspose from https://github.com/nathanieljohnston/QETLAB
# % PartialTranspose from https://github.com/nathanieljohnston/QETLAB
# rhoT = PartialTranspose(rho, 1, [d d]);
# lambda = sdpvar;
# constraints = [(rhoT + lambda*eye(d^2) >= 0):'PPT'];
Expand All @@ -403,7 +403,7 @@ robustness_jump(3)
# if sol.problem == 0
# WT = dual(constraints('PPT'));
# value(lambda)
# real(WT(:).' * rhoT(:))
# real(WT(:)' * rhoT(:))
# else
# display(['Something went wrong: ', sol.info])
# end
Expand All @@ -423,7 +423,7 @@ robustness_jump(3)
# ```matlab
# function robustness_cvx(d)
# rho = random_state_pure(d^2);
# # PartialTranspose from https://github.com/nathanieljohnston/QETLAB
# % PartialTranspose from https://github.com/nathanieljohnston/QETLAB
# rhoT = PartialTranspose(rho, 1, [d d]);
# cvx_begin
# variable lambda
Expand Down

0 comments on commit 9bb40e1

Please sign in to comment.