astra-uu-se / atlantis

CBLS solver
2 stars 1 forks source link

Feature/domain #73

Closed frejknutarlewander closed 2 years ago

frejknutarlewander commented 2 years ago

I added two types of domain constraints: InDomain InSparseDomain.

Given a value v, the violation is the minimum absolute distance to a value inside the domain (0 if v is in the domain).

InSparseDomain contains an offset and a vector of Ints where each int i is the violation of the corresponding value.

InDomain contains non-overlapping ranges of lower- and upperbounds in an increasing order