source: html/trunk/Clp/userguide/ch02s09.html @ 956

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

First revision of user guide

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 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.65.1"><link rel="home" href="index.html" title="CLP User Manual"><link rel="up" href="ch02.html" title="Chapter 2. 
2  Basic Model Classes
3  "><link rel="previous" 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="id4759340"></a>Status Array</h2></div></div><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="id4759355"></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><span class="type">Status</span><sup>[<a name="id4759377" href="#ftn.id4759377">a</a>]</sup></th><th>
16          Description
17          </th></tr></thead><tbody><tr><td align="left" valign="top"><tt class="constant">basic</tt></td><td align="left" valign="top">
18          In basis
19          </td></tr><tr><td align="left" valign="top"><tt class="constant">isFree</tt></td><td align="left" valign="top">
20          Not in basis, has infinite bounds
21          </td></tr><tr><td align="left" valign="top"><tt class="constant">isFixed</tt></td><td align="left" valign="top">
22          Not in basis, bounds are equal
23          </td></tr><tr><td align="left" valign="top"><tt class="constant">atUpperBound</tt></td><td align="left" valign="top">
24          At upper bound, not in basis
25          </td></tr><tr><td align="left" valign="top"><tt class="constant">atLowerBound</tt></td><td align="left" valign="top">
26          At lower bound, not in basis
27          </td></tr><tr><td align="left" valign="top"><tt class="constant">superBasic</tt></td><td align="left" valign="top">
28          Between bounds, but not basic or free
29          </td></tr></tbody><tbody class="footnotes"><tr><td colspan="2"><div class="footnote"><p><sup>[<a name="ftn.id4759377" href="#id4759377">a</a>] </sup><span class="type">Status</span>
30            is an enumeration.</p></div></td></tr></tbody></table></div><p>
31  To get or set the status of a variable is a simple task:
32  </p><pre class="programlisting">
33  // Get row status...
34  Status status=model.getRowStatus(sequenceNumber)
35  // ... or get column status.
36  Status status=model.getColumnStatus(sequenceNumber)
37  // Set row status to basic (for example)...
38  model.setRowStatus(sequenceNumber,ClpSimplex::basic)
39  // ... or column status to basic.
40  model.setColumnStatus(sequenceNumber,ClpSimplex::basic)
41  </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">
42  Presolve
43   </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 3. 
44  Not-Quite-So-Basic Model Classes
45  </td></tr></table></div></body></html>
Note: See TracBrowser for help on using the repository browser.