Files
ortools-clone/docs/dotnet/SimpleMipProgram_8cs_source.html

81 lines
24 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OR-Tools</title>
<meta http-equiv="Content-Type" content="text/html;"/>
<meta charset="utf-8"/>
<!--<link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<link rel="stylesheet" type="text/css" href="ortools.css" title="default" media="screen,print" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="banner-container">
<div id="banner">
2019-09-12 09:22:44 +02:00
<span id="sfml">Google OR-Tools 7.4</span>
</div>
</div>
2019-08-07 18:01:08 -07:00
<div id="content" style="width: 100%; overflow: hidden;">
<div style="margin-left: 15px; margin-top: 5px; float: left; color: #145A32;">
2019-08-12 09:16:03 -07:00
<h2>DotNet Reference</h2>
2019-08-07 18:01:08 -07:00
<ul>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Sat.html">CP-SAT</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Graph.html">Graph</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Algorithms.html">Knapsack solver</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Linear solver</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1ConstraintSolver.html">Routing</a></li>
<li><a href="../dotnet/namespaceGoogle_1_1OrTools_1_1Util.html">Util</a></li>
</ul>
</div>
<div id="content">
2019-08-07 18:01:08 -07:00
<div align="center">
<h1 style="color: #145A32;">DotNet Reference</h1>
</div>
2019-09-12 09:22:44 +02:00
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_a7cc1eeded8f693d0da6c729bc88c45a.html">ortools</a></li><li class="navelem"><a class="el" href="dir_4d3a5a688e4550f3d7725aaa5ab9c27b.html">linear_solver</a></li><li class="navelem"><a class="el" href="dir_c058b655dd87a06086a3d01984927bc3.html">samples</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">SimpleMipProgram.cs</div> </div>
</div><!--header-->
<div class="contents">
2019-09-12 09:22:44 +02:00
<a href="SimpleMipProgram_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">// Copyright 2010-2018 Google LLC</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">// [START program]</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// [START import]</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">using</span> System;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceGoogle.html">Google</a>.<a class="code" href="namespaceGoogle_1_1OrTools.html">OrTools</a>.<a class="code" href="namespaceGoogle_1_1OrTools_1_1LinearSolver.html">LinearSolver</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">// [END import]</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classSimpleMipProgram.html"> 20</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classSimpleMipProgram.html">SimpleMipProgram</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> Main()</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="comment">// [START solver]</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// Create the linear solver with the CBC backend.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <a class="code" href="classGoogl
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_af3c2cc66fcd186d99369008f927e4137"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#af3c2cc66fcd186d99369008f927e4137">Google.OrTools.LinearSolver.Solver.NumConstraints</a></div><div class="ttdeci">int NumConstraints()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00105">Solver.cs:105</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable.html">Google.OrTools.LinearSolver.Variable</a></div><div class="ttdef"><b>Definition:</b> <a href="Variable_8cs_source.html#l00013">Variable.cs:13</a></div></div>
<div class="ttc" id="classSimpleMipProgram_html"><div class="ttname"><a href="classSimpleMipProgram.html">SimpleMipProgram</a></div><div class="ttdef"><b>Definition:</b> <a href="SimpleMipProgram_8cs_source.html#l00020">SimpleMipProgram.cs:20</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a9a1c20227b3f084a9e486e65a754ab45"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a9a1c20227b3f084a9e486e65a754ab45">Google.OrTools.LinearSolver.Solver.CreateSolver</a></div><div class="ttdeci">static Solver CreateSolver(String name, String type)</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2csharp_2SolverHelper_8cs_source.html#l00193">linear_solver/csharp/SolverHelper.cs:193</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_add072d9ca594e920e237e9c37dc3620e"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#add072d9ca594e920e237e9c37dc3620e">Google.OrTools.LinearSolver.Solver.Nodes</a></div><div class="ttdeci">long Nodes()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00210">Solver.cs:210</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a60abfb41c2623cf46b50ed36566394c6"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a60abfb41c2623cf46b50ed36566394c6">Google.OrTools.LinearSolver.Solver.Iterations</a></div><div class="ttdeci">long Iterations()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00205">Solver.cs:205</a></div></div>
<div class="ttc" id="namespaceGoogle_html"><div class="ttname"><a href="namespaceGoogle.html">Google</a></div><div class="ttdef"><b>Definition:</b> <a href="Constraint_8cs_source.html#l00011">Constraint.cs:11</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_ad5a1f6b9799002ff0603f7d70461871a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#ad5a1f6b9799002ff0603f7d70461871a">Google.OrTools.LinearSolver.Solver.NumVariables</a></div><div class="ttdeci">int NumVariables()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00060">Solver.cs:60</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a3a573235c991efdb3c59ee29dc831be5"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a3a573235c991efdb3c59ee29dc831be5">Google.OrTools.LinearSolver.Solver.Add</a></div><div class="ttdeci">Constraint Add(LinearConstraint constraint)</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2csharp_2SolverHelper_8cs_source.html#l00203">linear_solver/csharp/SolverHelper.cs:203</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a573d479910e373f5d771d303e440587d"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a573d479910e373f5d771d303e440587d">Google.OrTools.LinearSolver.Solver.ResultStatus</a></div><div class="ttdeci">ResultStatus</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00256">Solver.cs:256</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_ae617ffa9d1f75544ed94acfb65a2bf49"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#ae617ffa9d1f75544ed94acfb65a2bf49">Google.OrTools.LinearSolver.Solver.Objective</a></div><div class="ttdeci">Objective Objective()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00148">Solver.cs:148</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html">Google.OrTools.LinearSolver.Solver</a></div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00013">Solver.cs:13</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a2832415c98e765c6ee5358a65192059a"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a2832415c98e765c6ee5358a65192059a">Google.OrTools.LinearSolver.Solver.Maximize</a></div><div class="ttdeci">void Maximize(LinearExpr expr)</div><div class="ttdef"><b>Definition:</b> <a href="linear__solver_2csharp_2SolverHelper_8cs_source.html#l00221">linear_solver/csharp/SolverHelper.cs:221</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a6d3b9f54c252e047400f68afa257b540"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a6d3b9f54c252e047400f68afa257b540">Google.OrTools.LinearSolver.Solver.MakeIntVar</a></div><div class="ttdeci">Variable MakeIntVar(double lb, double ub, string name)</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00091">Solver.cs:91</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools.html">Google.OrTools</a></div><div class="ttdef"><b>Definition:</b> <a href="Constraint_8cs_source.html#l00011">Constraint.cs:11</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver_html_a7439098646e7c40d51d7b707679f6d36"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Solver.html#a7439098646e7c40d51d7b707679f6d36">Google.OrTools.LinearSolver.Solver.WallTime</a></div><div class="ttdeci">long WallTime()</div><div class="ttdef"><b>Definition:</b> <a href="Solver_8cs_source.html#l00224">Solver.cs:224</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Objective_html_a2d2806afc5e8067368c3eea0ca8eeecf"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Objective.html#a2d2806afc5e8067368c3eea0ca8eeecf">Google.OrTools.LinearSolver.Objective.Value</a></div><div class="ttdeci">double Value()</div><div class="ttdef"><b>Definition:</b> <a href="Objective_8cs_source.html#l00091">Objective.cs:91</a></div></div>
<div class="ttc" id="namespaceGoogle_1_1OrTools_1_1LinearSolver_html"><div class="ttname"><a href="namespaceGoogle_1_1OrTools_1_1LinearSolver.html">Google.OrTools.LinearSolver</a></div><div class="ttdef"><b>Definition:</b> <a href="Constraint_8cs_source.html#l00011">Constraint.cs:11</a></div></div>
<div class="ttc" id="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable_html_a6fce25d4dccb32e61fedf6268b593e08"><div class="ttname"><a href="classGoogle_1_1OrTools_1_1LinearSolver_1_1Variable.html#a6fce25d4dccb32e61fedf6268b593e08">Google.OrTools.LinearSolver.Variable.SolutionValue</a></div><div class="ttdeci">double SolutionValue()</div><div class="ttdef"><b>Definition:</b> <a href="Variable_8cs_source.html#l00056">Variable.cs:56</a></div></div>
</div><!-- fragment --></div><!-- contents -->
2019-08-07 18:01:08 -07:00
</div>
</div>
<div id="footer-container">
<div id="footer">
</div>
</div>
</body>
</html>