cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

3-Visitor

## Vector or for loop?

I have programmed a design-model for bending of one single cross-section for a floor slab. I want to optimize this calculation-model to be able to calculate for several cross-sectional dimensions. My first idea was to vectorize the different values, but it wasn't as easy as i thought because of several dimension-errors.

What is the best solution to be able to compute this for all different combinations of cross-sectional dimensions (hw,bw,hf)?

Regards,

11 REPLIES 11
23-Emerald III
(To:LN_9876459)

Your sheet contains a lot of data and information, so it's not clear (to me) what operations you are talking about.

At first glance, I think you cannot use vectorisation, so you need to program. But it depends heavily on the type of operations you need to perform and how many variables are into play.

Success!
Luc

20-Turquoise
(To:LN_9876459)

Instead of V, you can use the function you want to optimize. Then find the maximum or minimum you want.

3-Visitor
(To:ttokoro)

Hi,

Thank you for the help.

This seems to be the solution i searched for. But, i get an error as below. Whats the problem?

20-Turquoise
(To:LN_9876459)

Prime7 file attached.

3-Visitor
(To:ttokoro)

Hi,

Thank you for the help, but is it possible for you to send a printscreen? Im using Prime 6, so i can´t open the file.

thanks,

Lisa

20-Turquoise
(To:LN_9876459)

Your On may be O ctrl+- n, but it should be O [ n, therefore n is index of vector O.

23-Emerald I
(To:LN_9876459)

don't vectorize here

23-Emerald I
(To:LN_9876459)

I've made a start, but this is a long, complicated sheet.

See if the attached Prime 6 file sheds any light.  (I got a far as the second moment of inertia.

23-Emerald I
(To:Fred_Kohlhepp)

Next iteration, up thru glue in Prime 6.0

3-Visitor
(To:Fred_Kohlhepp)

Hi,

Thank you so much for the help and the effort!

23-Emerald I
(To:LN_9876459)

It took some ingenuity, but the attached file (I believe) works thru your sheet and gets it all functioning correctly.

It's in Prime 6.0, and I think it would run in Express (I disabled the solve blocks and programs.

Announcements
Top Tags