intvar

intvar used to define decision variables with integer elements.

Syntax

x = intvar(n)
x = intvar(n,m,)
x = intvar(n,m,'type'
x = intvar(n,m,'type','field')
intvar x

Examples

A scalar integer variable is defined with

P = intvar(1)

A related alternative command is integer.

For more examples, see sdpvar.