I have the following clingo code that generates the search space, followed by constraints.
{in(I,1..4)}=1 :- I=1..n.
:- [constraint1]
:- [constraint2]
This code works. But I need clingo to find the largest value of n for which a stable model exists. What is the best way to do that?
You can use the #min aggregate to find min n.
and use #maximize directive to find stable models in which the value of aggregate experission is larger.