EGR 103/Fall 2023/Lab 9

From PrattWiki
Jump to navigation Jump to search

Assignment

  • In all cases, remember to use the Connect values for the Connect problems but replace those with the book values when you are preparing things for your lab report!
  • You will be using function minimization to solve several engineering problems. The main Python methods you will be using are:
Note that generally we will bring in scipy.optimize with
import scipy.optimize as opt
so the function calls will look like
opt.fminbound()
opt.fmin()
In the documentation on Scipy, they bring in the entire optimize package with
from scipy import optimize
so their function calls look like
optimize.fminbound()
optimize.fmin()

Chapra 7.16

  • Note that you will be using both fmin and fminbound just to compare and contrast open and closed methods. The two values you get should be close and either one should work in Connect.

Chapra 7.25, 7.26, 7.27

  • For the initial guesses, you can use [0, 0]

Chapra 7.31

  • Note that you will be using both fmin and fminbound just to compare and contrast open and closed methods. The two values you get should be close and either one should work in Connect.

Chapra 7.34

  • Note that you will be using both fmin and fminbound just to compare and contrast open and closed methods. The two values you get should be close and either one should work in Connect.

Chapra 7.36

  • Note that you will be using both fmin and fminbound just to compare and contrast open and closed methods. The two values you get should be close and either one should work in Connect.