yalmip / YALMIP

MATLAB toolbox for optimization modeling
https://yalmip.github.io/
Other
464 stars 134 forks source link

Fixes #1232 #1233

Closed htadashi closed 1 year ago

htadashi commented 1 year ago

This PR proposes a change to the adjoint function in adjoint.m. Specifically, the change will modify the behavior of adjoint(M) when M is a scalar. Currently, when M is a scalar, the function returns M itself. However, this PR proposes that adjoint(M) should instead return 1 for scalar M.

johanlofberg commented 1 year ago

Great, thank you

htadashi commented 1 year ago

Thank you for replying quickly. Also, Johan, I want to express my gratitude for your exceptional work. Your commitment and effort are truly inspiring.