<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='pmathml.xsl'?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Linking the CppAD Interface to Ipopt in Visual Studio 9.0</title>
<meta name="description" id="description" content="Linking the CppAD Interface to Ipopt in Visual Studio 9.0"/>
<meta name="keywords" id="keywords" content=" "/>
<style type='text/css'>
body { color : black }
body { background-color : white }
A:link { color : blue }
A:visited { color : purple }
A:active { color : purple }
</style>
<script type='text/javascript' language='JavaScript' src='_cppad_ipopt_windows_xml.js'>
</script>
</head>
<body>
<table><tr>
<td>
<a href="http://www.coin-or.org/CppAD/" target="_top"><img border="0" src="_image.gif"/></a>
</td>
<td><a href="cppad_ipopt_nlp.xml" target="_top">Prev</a>
</td><td><a href="ipopt_get_started.cpp.xml" target="_top">Next</a>
</td><td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</option>
<option>contents</option>
<option>reference</option>
<option>index</option>
<option>search</option>
<option>external</option>
</select>
</td>
<td>
<select onchange='choose_up0(this)'>
<option>Up-&gt;</option>
<option>CppAD</option>
<option>cppad_ipopt_nlp</option>
<option>cppad_ipopt_windows</option>
</select>
</td>
<td>
<select onchange='choose_down2(this)'>
<option>CppAD-&gt;</option>
<option>Install</option>
<option>Introduction</option>
<option>AD</option>
<option>ADFun</option>
<option>multi_thread</option>
<option>library</option>
<option>cppad_ipopt_nlp</option>
<option>Example</option>
<option>preprocessor</option>
<option>Appendix</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>cppad_ipopt_nlp-&gt;</option>
<option>cppad_ipopt_windows</option>
<option>ipopt_get_started.cpp</option>
<option>cppad_ipopt_ode</option>
<option>ipopt_ode_speed.cpp</option>
</select>
</td>
<td>cppad_ipopt_windows</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Purpose</option>
</select>
</td>
</tr></table><br/>


 

<center><b><big><big>Linking the CppAD Interface to Ipopt in Visual Studio 9.0</big></big></b></center>
<br/>
<b><big><a name="Purpose" id="Purpose">Purpose</a></big></b>
<br/>
In the special case where you are using Visual Studio 9.0,
you do not need to build Ipopt. 
You can instead follow these instructions
to install the Coin binary distribution for the Ipopt libraries
(where Visual Studio can find them).

<ol type="1"><li>
Download the binary file below which contains a build of all
most of the Coin-Or projects as of 2008-09-28
<a href="http://www.coin-or.org/download/binary/CoinAll/CoinAll-1.2-VisualStudio.zip" target="_top"><span style='white-space: nowrap'>CoinAll-1.2-VisualStudio.zip</span></a>


</li><li>

Choose a directory and unzip the file
<code><font color="blue">CoinAll-1.2-VisualStudio.zip</font></code> in that directory.
We refer to this as the 
<code><i><font color="black"><span style='white-space: nowrap'>from_directory</span></font></i></code>
 below.

</li><li>

Open a Dos shell window and change into your CppAD distribution directory;
e.g., if you install from a tarball, this will be 
<code><font color="blue"><span style='white-space: nowrap'>cppad-</span></font><i><font color="black"><span style='white-space: nowrap'>yyyymmdd</span></font></i></code>
 
where 
<code><i><font color="black"><span style='white-space: nowrap'>yyyymmdd</span></font></i></code>
 is the year, month, and date corresponding to 
your version of CppAD.

</li><li>

Execute the dos command

<code><font color="blue"><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;cppad_ipopt\cppad_ipopt_windows.bat&#xA0;</span></font><i><font color="black"><span style='white-space: nowrap'>from_directory</span></font></i><font color="blue"><span style='white-space: nowrap'><br/>
</span></font></code>
</li><li>
In Visual Studio open the project file
<code><font color='blue'><pre style='display:inline'> 
	cppad_ipopt\cppad_ipopt.sln
</pre></font></code>

and build the <code><font color="blue">Release</font></code> version of the project
(the <code><font color="blue">Debug</font></code> version is not supported by the CoinAll binary).

</li><li>

In the Dos shell window, execute the command
<code><font color='blue'><pre style='display:inline'> 
	cppad_ipopt\Release\cppad_ipopt
</pre></font></code>

It should generate the following output:
<code><font color='blue'><pre style='display:inline'> 
	Ok:    cppad_ipopt_ode
	Ok:    cppad_ipopt_simple
	Ok:    No memory leak detected
	All 3 tests passed.
</pre></font></code>

</li></ol>



<hr/>Input File: cppad_ipopt/example/example_windows.bat

</body>
</html>

