设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5530|回复: 2

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

[复制链接]
发表于 2009-5-15 15:41:08 | 显示全部楼层 |阅读模式
5仿真币
Automod里面有没有一个可以存储数据的东西 例如像我上次的程序里使用了' |- f1 m  w( p+ u4 H# }. Z* g5 o" E
     Aproductnum11
0 s3 a- o% j/ S8 B3 E     Aproductnum12  : c5 H4 W, [% U- m+ o
     Aproductnum13
4 u% e2 b) w& G( S( G( E     Aproductnum14 . d+ U4 J# D$ d8 R" d$ _" k( W& Y' n
     Aproductnum15
, @) C* _  n9 E0 h) j     Aproductnum21
5 X# }8 A/ U. y: d     Aproductnum22
4 A% t1 N2 {0 H  X+ s     Aproductnum23  S8 x, h7 _" e1 O
     Aproductnum24
6 M$ `; ?# |* p/ K$ T' W1 D8 n。。。。
$ N) J- n2 |; k+ |# v" R  j3 X  这样需要定义太多的atribute  O# k- r  s& {0 _

2 P  O. U, I% A5 b/ @  我想让每个Aproductnum1 Aproductnum2  Aproductnum3 Aproductnum4 Aproductnum5 的值先预存到
4 a2 ]; U3 b9 a' C: L, m7 m/ a0 f6 j' g" p. s( }
一个地方 / N0 `$ q( ]# D5 `
  然后再循环产生新的一轮的Aproductnum1 Aproductnum2  Aproductnum3  Aproductnum4
9 W0 a- p: k( b/ v5 S7 m: |* g) o# a. s1 U# g4 Z, G
Aproductnum5再存到这个地方; n) S/ D5 K7 P. O3 F. A
  循环几轮后,将Aproductnum1 产生的值依次加  Aproductnum2 产生的值依次加 。。。5 ]1 ?9 t( @% m3 V# c# O3 h( V
   
, v$ E, I2 Q/ N- t9 |! o6 d  有什么好方法吗

最佳答案

查看完整内容

每产生一组数据: print Aproductnum1, "\t", Aproductnum2, "\t", Aproductnum3, "\t", Aproductnum4, "\t", Aproductnum5 to data.xls 如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。 双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
发表于 2009-5-15 15:41:09 | 显示全部楼层
每产生一组数据:8 t* U' F% H% a4 J
print Aproductnum1, "\t",  Aproductnum2, "\t",  Aproductnum3, "\t",  Aproductnum4, "\t",  Aproductnum5 to data.xls/ ^  b7 l! |( A$ B0 Q& A& s4 W9 D( `
: j/ Z* a) j- P6 i5 Q+ M1 C
如果不能在一次运行时产生所有数据,就每次运行后到模型目录下把Data.xls改个名复制出来。
6 M" u; e6 t) R4 w# q1 K- ~# R* Y: }% V+ l
双击可以用Excel打开,虽然会报错但可直接拿来当表格用。再另存成真正的xls格式就好了。
 楼主| 发表于 2009-5-19 16:00:28 | 显示全部楼层
谢谢您的解答 能告诉我你的QQ号吗 我还有细节问题想与您交流下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-26 21:38 , Processed in 0.012605 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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