Replies: 2 comments 2 replies
-
Further tests may be needed to identify the cause of the error. actions = model.generate_actions([model.Projection.BEL_result.node()])
model.clear_all()
model.execute_actions(actions)
model.Projection.BEL_result() Does the above code run successfully? The key difference from your test is the inclusion of If this is successful, then let's proceed with the next test in a new Python session: First, run: actions = model.Projection.actions = model.generate_actions([model.Projection.BEL_result.node()])
model.write("test_actions") Then, start another Python session and run the following: model = mx.read_model("test_actions")
model.execute_actions(model.Projection.actions)
model.Projection.BEL_result() Does this run successfully? If it fails, compare the contents of
|
Beta Was this translation helpful? Give feedback.
-
I tried your code and successfully saved file and checked the code below and works well. model = mx.read_model("C:/modelx/models/test_action") but new problem faced. I executed action with 'test_action' file with new model point but model point is not updated. The tested codes are below m = mx.read_model('C:/modelx/models/test_action') When I tried the code "m.execute_actions(m.Projection.actions)" any calculations are not executed. also "result" is the result that I previously saved result when the model generated action. Could you give me further helps? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I built heavy model and finally tried to run the model with the method below link
since it uses too much memory
https://lifelib.io/libraries/savings/savings_example3.html
the contents of the link has three steps.
When I execute the model with the code in step3, the error occured,
FYI, generated3 is generated model from step1.
The error message said..
it seems it has problem with
m.Projection.actions
which was generated.I tested in step 1. generated model with the code below and it works well.
I think it has some problems when I saved the model.
I tried several times and it has same errors in step3.
Is there things to do when saving models?
and would you let me know where can I find information about generated model in the saved model?
I can't find information about generated model in
__init__
file in Projection folder.Beta Was this translation helpful? Give feedback.
All reactions