Closed oyendrila-dobe closed 4 years ago
Hi,
the short answer is that this script should not have been in the master branch to start with. I will try to fix the error, but meanwhile: do you really have a cost function or what are you trying to achieve? I will likely move this script into the main parameter synthesis script as-we-go, so it would be good if I preserve the behaviour you are interested in.
Please notice that I recently started to extend the documentation.
Best, Sebastian
I basically need to find a way to get the created model for the input DTMC. I tried to find where in the parameter_synthesis file I could get that, but I could not trace back calls to the modelchecker.py, where I think I could get the built model from. The model_repair file seemed to have an easy call to model creation part of the code. Hence, I was trying that. Any help in this regard would be really appreciated.
So you input a model describing a DTMC and you want to get an object that represents this DTMC for further processing? Then I don't see a reason to use prophesy. Stormpy should be all you really need. Maybe this document helps? https://moves-rwth.github.io/stormpy/getting_started.html#a-quick-tour-through-stormpy
The more information you give in that regard, the better I can help you.
I need the built model for a pDTMC, hence I was thinking of reusing the code of prophesy. But the tutorial you pointed out does make things more clear. Thank you.
I tried running the model_repair.py as the example given in the script,
python modelrepair.py --prism-file ../benchmarkfiles/brp/brp_16-2.pm --pctl-string "P<=0.95 [F \\"target\\"]" --cost-function "(+ (* (- pK 0.6) (- pK 0.6)) (* (- pL 0.7) (- pL 0.7)))"
. However, it encounters a errorAttributeError: 'NoneType' object has no attribute 'check_tools'
The full trace is as follows:My guess is in file config.py,
configuration=None
is never reset, (I'm guessing load_configuration was supposed to be invoked on it to initialize it). Not sure if I'm missing something.