Cancel
Showing results for 
Search instead for 
Did you mean: 

how to dealt with unkonw index in a model?

Valued Contributor
Valued Contributor

hello,everyone!

 

I create a model, there is "setup_times" which is tablefile,and run it ,the result is shown in the following.What happens with it ?

the model is attched,please help me !

thank you!

 

 

01.JPG

5 REPLIES

回复: how to dealt with unkonw index in a model?

Valued Contributor
Valued Contributor

please refer to this model!

回复: how to dealt with unkonw index in a model?

Phenom
Phenom

the variable/index "former" is "" !

and in the setup_time table there are only 3 indexes p1..p3.

former="" does not exist in the the setup_time table.

 

 

Unbenannt.png

回复: how to dealt with unkonw index in a model?

Valued Contributor
Valued Contributor

Hi,Phenom!

 

you can refer the attached model"lot_change.spp",the setup_times is the same ,why it can run smoothly. Can you revise it on the "wrong model"?

Thank you!

 

回复: how to dealt with unkonw index in a model?

Phenom
Phenom

I suppose the method code should look like this ( s.b.)

 

This is seems  to be the difference between both models.

 

Unbenannt.png

回复: how to dealt with unkonw index in a model?

Valued Contributor
Valued Contributor
Thanks for your directions! Now the model runs smoothly.