cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
%3CLINGO-SUB%20id%3D%22lingo-sub-778107%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%95%B6%E8%BC%B8%E5%87%BA%E6%98%AF%E5%90%91%E9%87%8F%E6%99%82%E4%B8%A6%E8%A1%8C%E8%B3%A6%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778107%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E9%81%8B%E8%A1%8C%E4%B8%80%E5%80%8B%E6%A8%A1%E6%93%AC%EF%BC%8C%E5%85%B6%E4%B8%AD%E6%A8%A1%E6%93%AC%E7%9A%84%E8%BC%B8%E5%87%BA%E6%98%AF%E4%B8%80%E5%80%8B%E5%90%91%E9%87%8F%EF%BC%8C%E5%8D%B3%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EF_Simulation%3DFunction(%7Ba%2Cb%7D%2C%20%0A%2F*%20do%20simulation%2C%20resuling%20in%203%20values%20that%20are%20put%20into%20a%201x3%20matrix%20named%0Aoutvec%20*%2F%0Aoutvec%3B%0A)%3B%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E6%88%91%E6%83%B3%E5%B0%8D%E8%BC%B8%E5%85%A5%20a%20%E5%92%8C%20b%20%E7%9A%84%E5%80%BC%E7%B6%B2%E6%A0%BC%E9%80%B2%E8%A1%8C%E6%A8%A1%E6%93%AC%E3%80%82%E7%9C%8B%E4%BE%86%E6%88%91%E5%8F%AF%E4%BB%A5%E9%80%8F%E9%81%8E%E4%BD%BF%E7%94%A8%E4%B8%A6%E8%A1%8C%E5%88%86%E9%85%8D%E4%B8%A6%E8%A1%8C%E5%8C%96%E4%BE%86%E9%A1%AF%E8%91%97%E5%8A%A0%E5%BF%AB%E6%A8%A1%E6%93%AC%E7%A0%94%E7%A9%B6%E7%9A%84%E5%9F%B7%E8%A1%8C%E9%80%9F%E5%BA%A6%E3%80%82%E5%8F%AF%E4%BB%A5%E5%81%9A%E5%97%8E%EF%BC%9F%E9%97%9C%E6%96%BC%E5%A6%82%E4%BD%95%E5%9F%B7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%E6%9C%89%E4%BB%80%E9%BA%BC%E5%BB%BA%E8%AD%B0%E5%97%8E%EF%BC%9F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-778107%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E5%92%8C%E8%85%B3%E6%9C%AC%E7%B7%A8%E5%AF%AB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-778253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E8%BC%B8%E5%87%BA%E7%82%BA%E5%90%91%E9%87%8F%E6%99%82%E7%9A%84%E5%B9%B3%E8%A1%8C%E8%B3%A6%E5%80%BC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-778253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%B9%9F%E8%A8%B1%E9%80%99%E4%BA%9B%E7%B5%A6%E5%87%BA%E4%BA%86%E4%B8%80%E4%BA%9B%E6%83%B3%E6%B3%95%EF%BC%8C%E5%9B%A0%E7%82%BA%E5%AE%83%E5%80%91%E5%8C%85%E5%90%AB%E4%BD%BF%E7%94%A8%E4%B8%A6%E8%A1%8C%E5%88%86%E9%85%8D%EF%BC%88%EF%BC%89%E7%9A%84%E7%AF%84%E4%BE%8B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FUnderstanding-Parallel-Assign%2Fm-p%2F247314%23U247314%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E4%BA%86%E8%A7%A3%E4%B8%A6%E8%A1%8C%E5%88%86%E9%85%8D%3C%2FA%3E%20%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FParallel-Assign-is-slow-on-certain-devices%2Fm-p%2F428225%23U428225%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E4%B8%A6%E8%A1%8C%E5%88%86%E9%85%8D%EF%BC%88%EF%BC%89%E5%9C%A8%E6%9F%90%E4%BA%9B%E8%A8%AD%E5%82%99%E4%B8%8A%E5%BE%88%E6%85%A2%3C%2FA%3E%20%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FMultithreading-troubleshooting-using-Parallel-Assign%2Fm-p%2F230563%23U230563%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E4%BD%BF%E7%94%A8%E4%B8%A6%E8%A1%8C%E5%88%86%E9%85%8D%E9%80%B2%E8%A1%8C%E5%A4%9A%E5%9F%B7%E8%A1%8C%E7%B7%92%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
MathStatChem
Level VI

Parallel assign when the output is a vector

I am running a simulation where the output of the simulation is a vector, i.e.

 

F_Simulation=Function({a,b}, 
/* do simulation, resuling in 3 values that are put into a 1x3 matrix named
outvec */
outvec;
);  

I want to do the simulation over a grid of values for the inputs a and b.  It seems like i could get a significant speedup in execution of the simulation study by parallelizing, using Parallel Assign.  Could be done?  Any suggestions on how to do this?  

 

 

1 REPLY 1
jthi
Super User

Re: Parallel assign when the output is a vector

Maybe these give some ideas as they contain examples using Parallel Assign()

 

-Jarmo