Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Optimizing equations - Mathcad 14

Status
Not open for further replies.

DanSanz

Structural
Feb 28, 2013
3
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.
 
Actually you could take (total width + gap) /(Y + gap) and round up. Even simplier!
 
Thanks everyone for the assistance. It was very helpful.
Here is an example of my version.

Capture2_ucpjor.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor