Hi,
I'm using FlexSimPy to control a model externally. If I set evaluationLicense = True I can't simulate with different seeds (all results are deterministics), but when I pass evaluationLicense=False, it returns the error "lc_flexinit failed: 1".
I'm using an Educational License, but I already tried it using an Enterprise License and got the same error.
How can I fix it?
Following is my code:
- import os
- import FlexSimPy as fp
- scriptPath = os.path.dirname(os.path.realpath(__file__))
- programDir = scriptPath + "\\..\\..\\..\\..\\program\\"
- controller = fp.launch(evaluationLicense=False,programDir=programDir)
- controller.open(scriptPath+"\\ABDI_1.fsm")
- controller.setParameter("x3",3)
- print(controller.getParameter("x3"))
- controller.reset()
- controller.runToTime(403199)
- print(controller.getPerformanceMeasure("Total_prod"))
- print("ok")
Thanks.