blob: 57a6cf3b78bb46d2d4e81003db951d30c6132b1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<?xml version="1.0" encoding="UTF-8"?>
<refentry version="5.0-subset Scilab" xml:id="sym_isBinary" xml:lang="en"
xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:db="http://docbook.org/ns/docbook">
<refnamediv>
<refname>sym_isBinary</refname>
<refpurpose>Check if a variable is constrained to be binary</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>sym_isBinary(index)</synopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>This function checks if a variable is constrained to be binary (0 or 1).</para>
</refsection>
<refsection>
<title>Arguments</title>
<variablelist>
<varlistentry>
<term>index</term>
<listitem><para>Index of the variable to check. Must be in {0,1,2,...n-1} where n is the number of variables in the problem</para></listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Return value</title>
<para>Returns 1 if the variable is constrained to be binary and 0 if it is not.</para>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">sym_isBinary(2)</programlisting>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Keyur Joshi</member>
</simplelist>
</refsection>
</refentry>
|