|
SearchNavigationUser login |
Visualiser showing a lot of random objecs
|
||||
The development of this site is supported by the National Science Foundation under Computing Research Infrastructure Grant No. 0707612.
Theme originally designed by Chris Herberte
I or someone else would have to look at your model in detail
to answer your other questions. But regarding the showing of extra objects,
well the semantics of Alloy does not require a "minimum solution".
It just has to give you one solution (when solutions exist).
So if you have a model that permits up to 10 objects to exist,
and your formula specifically mentioned 2 of them, but if the analyzer
found a solution that satisfies all your criteria but has 5 objects in it,
then the analyzer will show this solution.
Trying to minimize a solution (given a specific minimization criteria) can be
very expensive, and Alloy Analyzer does not do solution minimization automatically.
If you want a model that has no more than 2 stations, then you can add that as a constraint.
Like " fact { #Station <= 2 } ", then Alloy Analyzer will be obligated to ensure that.
Sincerely,
Felix Chang
Alloy4 Developer
About the model:
Well, I'm trying to express the notion of stations on a line.
After having done so, I need to be able to check whether it is possible to go from station A to station B without stopovers, so there exists a Line in A.lines which is in B.lines.
But now, I need to calculate whether you need 1 or even 2 stopovers to reach station b.
That's a bit harder, and I was wondering whether the structure (not the contents) of my model are fine.