- data _null_;
- set Cool.Co_n;/*回归模型所在的数据集*/
- if _MODEL_=Co_model_H_1 then do;
- call symputx("t1",t1);
- call symputx("t2",t2);
- call symputx("Intercept",Intercept);*N1=t1*L0+t2*L1+Intercept;/*t1、t2和intercept是模型中的回归参数*/
- end;
- proc nlp tech=QUANEW outest=a out=out1;
- min f;
- decvar L0 L1 ;
- lincon &t1*L0+&t2*L1+&Intercept>=30;
- f=L0*L0+4*L0*L1;
- run;
复制代码日志记录:
71 proc nlp tech=QUANEW outest=a out=out1;
72 min f;
73 decvar L0 L1 ;
74 lincon &t1*L0+&t2*L1+&Intercept>=30;
-
22
--
202
WARNING: 没有解析符号引用 T1。
74 lincon &t1*L0+&t2*L1+&Intercept>=30;
-
22
ERROR 22-322: 语法错误,期望下列之一: 名称, 数值常数, 日期时间常数, +, -.
ERROR 202-322: 该选项或参数不可识别,将被忽略。
ERROR 22-322: 期望‘’。名称.
74 lincon &t1*L0+&t2*L1+&Intercept>=30;
-
76
ERROR 76-322: 语法错误,语句将被忽略......