我是SAS新手。我正在使用proc optmodel进行优化。我正在使用以下代码
proc optmodel presolver=0 printlevel=2;
set<num> I;
number ..., jb{I}, ex{I},
;
read data &Jobdata. into
I = [ID]
/*Optimization Parameters*/
...
jb = batch_job
ex = experience
/* Reading data */
....
**Variables for Objective Function;
...
**Objective Function;
max obj = sum{i in I} (sp[i] - cq[i]+qs[i])*r[i];
**Equality Contraints;
...
**Inequality Constraints;
...
**Optimization with trust-region interior point method
....
solve with ipnlp / tech=IPKRYLOV maxiter=2000000 printfreq=500;
**Save Decision Variables from Optimization;
...
quit;
我从proc optmodel中得到了一些意外的结果,我的疑问是jb&ex值正在引起问题。如何打印存储在jb&ex中的值?我在等式约束中使用了jb&ex。
代码在客户生产系统中,所以我不能共享完整的代码和数据