# source:html/userguide/ch02s04.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: 3.5 KB
Line
2  Building and Modifying a Model
3  </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.
4  Basic Model Classes
6  Getting at the Solution
8  Building and Modifying a Model
9  </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a> </td><th width="60%" align="center">Chapter 2.
10  Basic Model Classes
11  </th><td width="20%" align="right"> <a accesskey="n" href="ch02s05.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="buildandmodify"></a>
12  Building and Modifying a Model
13  </h2></div></div></div><p>
14  Rather than reading a model from an MPS file we can load a model from arrays
15  in memory.  There are various <tt class="function">loadProblem</tt> methods which
16  are similar to those in OSI.  It is easy to add more such methods to CLP if the need arises.
17  </p><p>We can copy in integer information by
18  <tt class="function">copyInIntegerInformation(const char * array)</tt> where array
19  is 0 or 1 to say integer and we can drop existing information by
20  <tt class="function">deleteIntegerInformation()</tt>.  There are various ways of
21  changing the size of a model.  The simplest is by the use of the method
22  <tt class="function">resize(newNumberRows,newNumberColumns)</tt> - this will either
23  truncate the model or add "default" rows or columns - a default row
24  has lower bound of -infinity and upper bound of +infinity, while a default
25  column has zero cost, zero lower bound and an upper bound of +infinity.
26  </p><p>
27  Normally we would use <tt class="function">deleteRows</tt>,
28  <tt class="function">addRows</tt>, <tt class="function">deleteColumns</tt> and