MCPcopy Create free account
hub / github.com/cvxpy/cvxpy / is_mixed_integer

Method is_mixed_integer

cvxpy/problems/problem_form.py:316–320  ·  view source on GitHub ↗

Whether the problem has integer or boolean variables.

(self)

Source from the content-addressed store, hash-verified

314 self._cones_full = cones
315
316 def is_mixed_integer(self) -> bool:
317 """Whether the problem has integer or boolean variables."""
318 if self._is_mixed_integer is None:
319 self._is_mixed_integer = self._problem.is_mixed_integer()
320 return self._is_mixed_integer
321
322 def is_lp(self) -> bool:
323 """Whether the problem is a linear program (only NonNeg/Zero cones)."""

Callers 6

test_lpMethod · 0.95
test_mixed_integerMethod · 0.95
_build_solving_chainFunction · 0.95
pick_default_solverFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_lpMethod · 0.76
test_mixed_integerMethod · 0.76