所有问题的代码
import pylatex
import latexify
import numpy as np
import matplotlib.pyplot as plt
from numba import jit
from numpy import argsort
import pandas as pd
import plotly.graph_objects as go
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = 'all'
InteractiveShell.ast_node_interactivity = 'last'
from scipy.optimize import minimize, rosen, rosen_der
import warnings
warnings.filterwarnings('ignore')
from sko import GA, PSO
from colorama import Fore
from time import time