Class exercise: choose yourself!

# Matplotlib compatibility patch for Pyodide
import matplotlib
if not hasattr(matplotlib.RcParams, "_get"):
    matplotlib.RcParams._get = dict.get

Class exercise: choose yourself!#

Solve one of the previous class exercises using metaheuristics!

Exercise 44 (Method)

Let’s solve this problem using a metaheuristic!

Click –> Live Code to activate live coding on this page!

import scipy as sp 
import numpy as np
#YOUR CODE HERE