AnsweredAssumed Answered

Python semiinteger variable

Question asked by matthias.kalt on Oct 17, 2017
Latest reply on Oct 30, 2017 by


I am trying to  work with the new python API and so far everything worked fine.


But now I am trying to define a semiinteger variable ehich should be 0 or greater than 5 and less than 10.
I do not get an error, but the vriable gets the value 4 and the optimizer writes that the solution is optimal.


The definition of the variable:

y = [xp.var(name = 'variable{}'.format(pa), lb = 0, ub = 10, threshold = 5, vartype = xp.semiinteger) for pa in range(len(PATTERN_NR))]


Thanks in advance,