source: html/userguide/ch02s09.html @ 2182

Last change on this file since 2182 was 966, checked in by ddelanu, 16 years ago

Temporary version, trying to fix problems in server change, real release to follow

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Status Array</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="CLP User Guide"><link rel="up" href="ch02.html" title="Chapter 2. 
2  Basic Model Classes
3  "><link rel="prev" href="ch02s08.html" title="
4  Presolve
5  "><link rel="next" href="ch03.html" title="Chapter 3. 
6  Not-Quite-So-Basic Model Classes
7  "></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Status Array</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s08.html">Prev</a> </td><th width="60%" align="center">Chapter 2. 
8  Basic Model Classes
9  </th><td width="20%" align="right"> <a accesskey="n" href="ch03.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="statusarray"></a>Status Array</h2></div></div></div><p>
10  The astute reader may have noticed that the status array has been mentioned
11  once or twice.  The beginning user will not need to look at it   Nevertheless,
12  for completeness the status of a variable can be found and set as shown below.
13  The possible state of a variable are listed in the following table (each may
14  have to be preceded by ClpSimplex::):
15  </p><div class="table"><a name="id4770018"></a><p class="title"><b>Table 2.4. Possible states of a variable</b></p><table summary="Possible states of a variable" border="0"><colgroup><col><col></colgroup><thead><tr><th>
16          <span class="type">Status</span><sup>[<a name="id4770039" href="#ftn.id4770039">a</a>]</sup>
17          </th><th>
18          Description
19          </th></tr></thead><tbody><tr><td align="left" valign="top">
20          <tt class="constant">basic</tt>
21          </td><td align="left" valign="top">
22          In basis
23          </td></tr><tr><td align="left" valign="top">
24          <tt class="constant">isFree</tt>
25          </td><td align="left" valign="top">
26          Not in basis, has infinite bounds
27          </td></tr><tr><td align="left" valign="top">
28          <tt class="constant">isFixed</tt>
29          </td><td align="left" valign="top">
30          Not in basis, bounds are equal
31          </td></tr><tr><td align="left" valign="top">
32          <tt class="constant">atUpperBound</tt>
33          </td><td align="left" valign="top">
34          At upper bound, not in basis
35          </td></tr><tr><td align="left" valign="top">
36          <tt class="constant">atLowerBound</tt>
37          </td><td align="left" valign="top">
38          At lower bound, not in basis
39          </td></tr><tr><td align="left" valign="top">
40          <tt class="constant">superBasic</tt>
41          </td><td align="left" valign="top">
42          Between bounds, but not basic or free
43          </td></tr></tbody><tbody class="footnotes"><tr><td colspan="2"><div class="footnote"><p><sup>[<a name="ftn.id4770039" href="#id4770039">a</a>] </sup><span class="type">Status</span>
44            is an enumeration.</p></div></td></tr></tbody></table></div><p>
45  To get or set the status of a variable is a simple task:
46  </p><pre class="programlisting">
47  // Get row status...
48  Status status=model.getRowStatus(sequenceNumber)
49  // ... or get column status.
50  Status status=model.getColumnStatus(sequenceNumber)
51  // Set row status to basic (for example)...
52  model.setRowStatus(sequenceNumber,ClpSimplex::basic)
53  // ... or column status to basic.
54  model.setColumnStatus(sequenceNumber,ClpSimplex::basic)
55  </pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s08.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
56  Presolve
57   </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 3. 
58  Not-Quite-So-Basic Model Classes
59  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.