设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10317|回复: 2

[求助] 我是初学者,请大家进来帮我看看

[复制链接]
发表于 2009-5-15 15:41:08 | 显示全部楼层 |阅读模式
5仿真币
Automod里面有没有一个可以存储数据的东西 例如像我上次的程序里使用了) g  H6 _; B2 i& x
     Aproductnum11
8 ^" Q- E1 U) t' e& i5 R     Aproductnum12  
7 [" F, T$ a# x/ V: H7 X( I; L; }  v     Aproductnum13
5 C8 X. ?3 W# z" M# a* W5 H, D     Aproductnum14
2 j. A8 D! G1 h& i% P+ t& p- q     Aproductnum15
% |) v+ S  u8 X! Y6 R& p4 f% m     Aproductnum21 5 I' T6 y/ _9 `+ L1 s& w6 j
     Aproductnum22 0 E$ W( {+ u- X) X  m/ Y! |
     Aproductnum23' p3 b0 X1 q# H+ J
     Aproductnum24
* V/ P" c# i. T, d3 }' h' y。。。。# }* k$ Y! V) W+ c$ L& X3 W
  这样需要定义太多的atribute
4 c6 W7 l9 Z$ ^: j- R( g1 [9 M# x
  我想让每个Aproductnum1 Aproductnum2  Aproductnum3 Aproductnum4 Aproductnum5 的值先预存到( j3 J8 [- x% R9 y6 l9 Y
* s; b3 K+ x- q8 o( v& g* d
一个地方
% _4 a6 P7 Q" Y' u* m* e- e1 h  然后再循环产生新的一轮的Aproductnum1 Aproductnum2  Aproductnum3  Aproductnum4
, m1 Q  y5 r% p2 C, ]2 ?: W) }/ w
( H& r- l2 ?6 Y  P( O* xAproductnum5再存到这个地方+ }# N& Z4 [5 y  g" @1 l
  循环几轮后,将Aproductnum1 产生的值依次加  Aproductnum2 产生的值依次加 。。。
! s7 R4 t" ?* V4 ?8 a   3 W# i) `. `% L" Z8 r
  有什么好方法吗

最佳答案

查看完整内容

每产生一组数据: print Aproductnum1, "\t", Aproductnum2, "\t", Aproductnum3, "\t", Aproductnum4, "\t", Aproductnum5 to data.xls 如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。 双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
发表于 2009-5-15 15:41:09 | 显示全部楼层
每产生一组数据:
$ e. B7 j# w) eprint Aproductnum1, "\t",  Aproductnum2, "\t",  Aproductnum3, "\t",  Aproductnum4, "\t",  Aproductnum5 to data.xls
  C4 [* i0 B# _
" f6 m( W. [! X* K) ]+ p. d5 b/ r如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。
+ p# D, q* ~: n) a  L) U) m" Y# l& m0 h. n$ r
双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
 楼主| 发表于 2009-5-19 16:00:28 | 显示全部楼层
谢谢您的解答 能告诉我你的QQ号吗 我还有细节问题想与您交流下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-2-12 23:54 , Processed in 0.014425 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表