17 lines
364 B
Mathematica
17 lines
364 B
Mathematica
|
|
function LIST = constraintclass(F,property)
|
|||
|
|
%CONSTRAINTCLASS Returns a list describing the constraints
|
|||
|
|
|
|||
|
|
% Author Johan L<EFBFBD>fberg
|
|||
|
|
% $Id: constraintclass.m,v 1.2 2005-02-04 10:10:26 johanl Exp $
|
|||
|
|
|
|||
|
|
F = flatten(F);
|
|||
|
|
if isempty(F.clauses)
|
|||
|
|
LIST = [];
|
|||
|
|
else
|
|||
|
|
LIST = [];
|
|||
|
|
for i = 1:length(F.clauses)
|
|||
|
|
LIST = [LIST;F.clauses{i}.type];
|
|||
|
|
end
|
|||
|
|
end
|
|||
|
|
|