Question: Write a Python program to solve the following optimization problem Use scipy.optimize.minimize ,minimize() allows you to set inequality and equality conditions. For this problem, you

Write a Python program to solve the following optimization problem Use scipy.optimize.minimize ,minimize() allows you to set inequality and equality conditions. For this problem, you will need to set an equality condition of Cross-sectional Area = 8. This will force minmize() to only find solutions that result in a cross-sectional area of 8m2.

You are desiging a channel for which you want to minimize resistance to flow - this is achieved by minimizing the "wetted perimeter" of the channel, defined as wp=b+2(h/cos), for a given cross-sectional area. (this minimizes resistance to flow; see the following figure for reference):

 Write a Python program to solve the following optimization problem Use

For this problem, assume we want to maintain a cross-sectional channel area of 8m2, so you want to find the minimum wetted perimeter that maintains this cross-sectional area.

For output, report the values for b, h, and theta that minimize the wetted perimeter.

Please include a docstring for all functions you define, describing what the function does, any parameters, and what the function returns.

resistance to flow, see the following figure for reference) The cross-sectional area of this channel is given by

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!