Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ValueError:t中的值必须是单调递增或单调递减的;_Python_Odeint - Fatal编程技术网

Python ValueError:t中的值必须是单调递增或单调递减的;

Python ValueError:t中的值必须是单调递增或单调递减的;,python,odeint,Python,Odeint,我试图用odeint解81个ODE,但我得到了上面的错误。我对下面的前几首颂歌进行了采样,因为81有点多余。Y和X来自由数据帧生成的列表 def solv(t,y,x): dssDNA_dt = -y[0] * x[0] * x[74] + y[1] * x[4] - y[6] * ((x[63]**y[8])/(y[7]**y[8] + x[63]**y[8])) *x[0] * x[63] dssPDNA_dt = y[0] * x[0] * x[74] - y[1] *

我试图用odeint解81个ODE,但我得到了上面的错误。我对下面的前几首颂歌进行了采样,因为81有点多余。Y和X来自由数据帧生成的列表

def solv(t,y,x):

    dssDNA_dt = -y[0] * x[0] * x[74] + y[1] * x[4] - y[6] * ((x[63]**y[8])/(y[7]**y[8] + x[63]**y[8])) *x[0] * x[63]
    dssPDNA_dt = y[0] * x[0] * x[74] - y[1] * x[1]
    dRF1_dt = y[1] * x[1] - y[2] * x[2] * x[61] + y[3] * x[3] + y[1] * x[4]
    dRF2_dt = y[2] * x[2] * x[61] - y[3] * x[3] -y[0] * x[3] * x[74]
    dRF2DP3_dt = y[0] * x[3] * x[61] - y[1] * x[4]
    dP5DNA_dt = y[6] * ((x[63]**y[8])/(y[7]**y[8] + x[63]**y[8])) * x[0] * x[63] - y[59] * x[78] * x[5]

    return[dssDNA_dt, dssPDNA_dt, dRF1_dt, dRF2_dt, dRF2DP3_dt, dP5DNA_dt]


t = np.linspace(0,100)
ent = odeint(solv,t,y0,x0)