惩罚函数法

时间:2017-07-13 11:20:41
【文件属性】:
文件名称:惩罚函数法
文件大小:5KB
文件格式:CPP
更新时间:2017-07-13 11:20:41
外点法 #include #include #define m 10 //f函数 float f(float x[],float p); //进退法 void mjtf(int n,float x0[],float h,float s[],float a[],float b[],float p); void mhjfgf(int n,float a[],float b[],float flag,float x[],float p); //鲍威尔法 void mbwef(int n,float x0[],float h,float flag,float a[],float b[],float x[],float p); float max(float l) { float resu; if(l<=0) resu=0; else resu=l*l;

网友评论