Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Optimizing equations - Mathcad 14

Status
Not open for further replies.

DanSanz

Structural
Feb 28, 2013
3
0
0
US
Hello,
I am looking for help with a optimization routine that will replace the trial and error method I normally use.
I am trying to find the least number of panels for a given length (L) and gap (G). The panel width (x) also needs to be less than a specified width (y).

Thank you.

Capture_oadvhs.jpg
 
Replies continue below

Recommended for you

Isn't it as simple as taking total width = nx + (n-1)gap

Take initial 'n' number of panels guess as total width /(y + gap) rounded up to nearest whole number. This will always ensure you are slightly less than y width because you're counting an extra gap in doing this. Provided the gap is small compared to panel width this will be correct.

Then solve 1st equation for actual 'x' width of individual panels? Compare to ensure x<y.

If gap is large relative to panel width then compare n+1 panels and see if it results in an extra panel being able to satisfy x<y.

Probably a more elegant way to do it, but it's a fairly simple linear system.
 
Status
Not open for further replies.
Back
Top