- 积分
- 1
- 注册时间
- 2011-1-1
- 仿真币
-
- 最后登录
- 1970-1-1
|
哪位大哥美女有1stopt2.0及以上版本的,帮小弟运行几个代码!小弟跪谢。。。
小弟的是1.5pj版,不能设置参数约束时的非线性拟合。
Title "Type your title here";
//Parameters ;
//Variable ;
//Function ;
Parameters C[3,6],x0[1,];
Variables x,y;
Function if(x>x0,y=C5*x+C6,if((x>1)and(x<=x0),y=C3*(exp(C4*(x-1))-1),y=0));
C3*(exp(C4*(x0-1))-1)=C5*x0+C6;
C3*C4*exp(C4*(x0-1))=C5;
Data;
1.000000 0.000000
1.014239 0.069630
1.028479 0.355111
1.035437 0.706741
1.044822 1.410000
Newdivision;
Title "Type your title here";
//Parameters ;
//Variable ;
//Function ;
Parameters C[3,6],x0[1,];
Variables x,y;
Function if(x>x0,y=C5*x+C6,if((x>1)and(x<=x0),y=C3*(exp(C4*(x-1))-1),y=0));
C3*(exp(C4*(x0-1))-1)=C5*x0+C6;
C3*C4*exp(C4*(x0-1))=C5;
Data;
1.000000 0.000000
1.018285 0.069630
1.037325 0.355111
1.047627 0.706741
1.059763 1.410000
Newdivision;
Title "Type your title here";
//Parameters ;
//Variable ;
//Function ;
Parameters C[3,6],x0[1,];
Variables x,y;
Function if(x>x0,y=C5*x+C6,if((x>1)and(x<=x0),y=C3*(exp(C4*(x-1))-1),y=0));
C3*(exp(C4*(x0-1))-1)=C5*x0+C6;
C3*C4*exp(C4*(x0-1))=C5;
Data;
1.000000 0.000000
1.022330 0.069630
1.046170 0.355111
1.059817 0.706741
1.074703 1.410000
Newdivision;
Title "Type your title here";
//Parameters ;
//Variable ;
//Function ;
Parameters C[3,6],x0[1,];
Variables x,y;
Function if(x>x0,y=C5*x+C6,if((x>1)and(x<=x0),y=C3*(exp(C4*(x-1))-1),y=0));
C3*(exp(C4*(x0-1))-1)=C5*x0+C6;
C3*C4*exp(C4*(x0-1))=C5;
Data;
1.000000 0.000000
1.026375 0.069630
1.055016 0.355111
1.072006 0.706741
1.089644 1.410000
|
|