Skip to content

Optimizer and SPMD: Error using optimizer/subsref (line 358) #946

Discussion options

You must be logged in to vote

I guess you have more than 1 parameter in your non-revealed failing example

P([a b c]) is equivalent to [P(a) P(b) P(c)] which means your trial example will work for scalar parameter but likely will fail if you have more than 1 parameter but still send 1 x N argument

parfor appears to work in 2020 and later or something like that (and should definitely work with optimizer)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@davidwozabal
Comment options

@johanlofberg
Comment options

@davidwozabal
Comment options

@johanlofberg
Comment options

@davidwozabal
Comment options

Answer selected by davidwozabal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants