Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Feb 28, 2013
Messages
3
Location
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
 
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

Back
Top