Files
ortools-clone/docs/java/SimpleLpProgram_8java_source.html

88 lines
26 KiB
HTML
Raw Normal View History

2019-06-13 02:45:44 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OR-Tools: SimpleLpProgram.java Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="ortools.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">OR-Tools
&#160;<span id="projectnumber">7.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<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="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</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">SimpleLpProgram.java</div> </div>
</div><!--header-->
<div class="contents">
<a href="SimpleLpProgram_8java.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">// Minimal example to call the GLOP solver.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">// [START program]</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">// [START import]</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">import</span> <a class="code" href="namespacecom.html">com</a>.<a class="code" href="namespacecom_1_1google.html">google</a>.<a class="code" href="namespacecom_1_1google_1_1ortools.html">ortools</a>.<a class="code" href="namespacecom_1_1google_1_1ortools_1_1linearsolver.html">linearsolver</a>.<a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">MPConstraint</a>;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">import</span> <a class="code" href="namespacecom.html">com</a>.<a class="code" href="namespacecom_1_1google.html">google</a>.<a class="code" href="namespacecom_1_1google_1_1ortools.html">ortools</a>.<a class="code" href="namespacecom_1_1google_1_1ortools_1_1linearsolver.html">linearsolver</a>.<a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html">MPObjective</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">import</span> <a class="code" href="namespacecom.html">com</a>.<a class="code" href="namespacecom_1_1google.html">google</a>.<a class="code" href="namespacecom_1_1google_1_1ortools.html">ortools</a>.<a class="code" href="namespacecom_1_1google_1_1ortools_1_1linearsolver.html">linearsolver</a>.<a class="code" href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">MPSolver</a>;</div><div class="line"><a name="l00
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html">com.google.ortools.linearsolver.MPVariable</a></div><div class="ttdef"><b>Definition:</b> <a href="MPVariable_8java_source.html#l00013">MPVariable.java:13</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a974975dc92e0805cc99a2760bd6782d7"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a974975dc92e0805cc99a2760bd6782d7">com.google.ortools.linearsolver.MPObjective.setMaximization</a></div><div class="ttdeci">void setMaximization()</div><div class="ttdef"><b>Definition:</b> <a href="MPObjective_8java_source.html#l00068">MPObjective.java:68</a></div></div>
<div class="ttc" id="namespacecom_html"><div class="ttname"><a href="namespacecom.html">com</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html">com.google.ortools.linearsolver.MPConstraint</a></div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00013">MPConstraint.java:13</a></div></div>
<div class="ttc" id="namespacecom_1_1google_1_1ortools_1_1linearsolver_html"><div class="ttname"><a href="namespacecom_1_1google_1_1ortools_1_1linearsolver.html">com.google.ortools.linearsolver</a></div><div class="ttdef"><b>Definition:</b> <a href="main__research__linear__solver_8java_source.html#l00009">main_research_linear_solver.java:9</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_a327372f68d75289337ee2c318b6eab7d"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#a327372f68d75289337ee2c318b6eab7d">com.google.ortools.linearsolver.MPObjective.setCoefficient</a></div><div class="ttdeci">void setCoefficient(MPVariable var, double coeff)</div><div class="ttdef"><b>Definition:</b> <a href="MPObjective_8java_source.html#l00044">MPObjective.java:44</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a4cb539145ead1c91afda210644e52aa1"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a4cb539145ead1c91afda210644e52aa1">com.google.ortools.linearsolver.MPSolver.solve</a></div><div class="ttdeci">MPSolver.ResultStatus solve()</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00156">MPSolver.java:156</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a2e410fd90605e06e42bcb1b096d79769"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a2e410fd90605e06e42bcb1b096d79769">com.google.ortools.linearsolver.MPSolver.numConstraints</a></div><div class="ttdeci">int numConstraints()</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00122">MPSolver.java:122</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a3ce0ce830904758c0a43ecf824980755"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a3ce0ce830904758c0a43ecf824980755">com.google.ortools.linearsolver.MPSolver.makeConstraint</a></div><div class="ttdeci">MPConstraint makeConstraint(double lb, double ub)</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00131">MPSolver.java:131</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html_ad94745cecae2857144eff69562be27c0"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html#ad94745cecae2857144eff69562be27c0">com.google.ortools.linearsolver.MPObjective.value</a></div><div class="ttdeci">double value()</div><div class="ttdef"><b>Definition:</b> <a href="MPObjective_8java_source.html#l00080">MPObjective.java:80</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html">com.google.ortools.linearsolver.MPSolver</a></div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00013">MPSolver.java:13</a></div></div>
<div class="ttc" id="namespacecom_1_1google_1_1ortools_html"><div class="ttname"><a href="namespacecom_1_1google_1_1ortools.html">com.google.ortools</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType_html"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType.html">com.google.ortools.linearsolver.MPSolver.OptimizationProblemType</a></div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00236">MPSolver.java:236</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable_html_abd406be5e65f37771effe20d9203e6f8"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPVariable.html#abd406be5e65f37771effe20d9203e6f8">com.google.ortools.linearsolver.MPVariable.solutionValue</a></div><div class="ttdeci">double solutionValue()</div><div class="ttdef"><b>Definition:</b> <a href="MPVariable_8java_source.html#l00048">MPVariable.java:48</a></div></div>
<div class="ttc" id="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType_html_a68deaeb6505ee40b763ef284797a5bef"><div class="ttname"><a href="enumcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_1_1OptimizationProblemType.html#a68deaeb6505ee40b763ef284797a5bef">com.google.ortools.linearsolver.MPSolver.OptimizationProblemType.GLOP_LINEAR_PROGRAMMING</a></div><div class="ttdeci">GLOP_LINEAR_PROGRAMMING</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00238">MPSolver.java:238</a></div></div>
<div class="ttc" id="classSimpleLpProgram_html_aa596586de66b76c2a449e4ef80bc70a5"><div class="ttname"><a href="classSimpleLpProgram.html#aa596586de66b76c2a449e4ef80bc70a5">SimpleLpProgram.main</a></div><div class="ttdeci">static void main(String[] args)</div><div class="ttdef"><b>Definition:</b> <a href="SimpleLpProgram_8java_source.html#l00029">SimpleLpProgram.java:29</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective_html"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPObjective.html">com.google.ortools.linearsolver.MPObjective</a></div><div class="ttdef"><b>Definition:</b> <a href="MPObjective_8java_source.html#l00013">MPObjective.java:13</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint_html_a8ea6d4649734d3344a5a104722710312"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPConstraint.html#a8ea6d4649734d3344a5a104722710312">com.google.ortools.linearsolver.MPConstraint.setCoefficient</a></div><div class="ttdeci">void setCoefficient(MPVariable var, double coeff)</div><div class="ttdef"><b>Definition:</b> <a href="MPConstraint_8java_source.html#l00044">MPConstraint.java:44</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_ae5ee1c277142decb79a2f8124eef55cf"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#ae5ee1c277142decb79a2f8124eef55cf">com.google.ortools.linearsolver.MPSolver.objective</a></div><div class="ttdeci">MPObjective objective()</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00151">MPSolver.java:151</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_af9a95c8101cc414058de5b05030204c8"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#af9a95c8101cc414058de5b05030204c8">com.google.ortools.linearsolver.MPSolver.numVariables</a></div><div class="ttdeci">int numVariables()</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00093">MPSolver.java:93</a></div></div>
<div class="ttc" id="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver_html_a15644507cc8ab0340fa2c081a9ce6971"><div class="ttname"><a href="classcom_1_1google_1_1ortools_1_1linearsolver_1_1MPSolver.html#a15644507cc8ab0340fa2c081a9ce6971">com.google.ortools.linearsolver.MPSolver.makeNumVar</a></div><div class="ttdeci">MPVariable makeNumVar(double lb, double ub, String name)</div><div class="ttdef"><b>Definition:</b> <a href="MPSolver_8java_source.html#l00107">MPSolver.java:107</a></div></div>
<div class="ttc" id="namespacecom_1_1google_html"><div class="ttname"><a href="namespacecom_1_1google.html">com.google</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>