2019-06-13 13:08:49 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2019-06-12 22:00:29 +02:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
2019-06-13 13:08:49 +02:00
< 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"/> -->
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
2020-09-01 16:00:33 +02:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.css" rel = "stylesheet" type = "text/css" / >
2019-06-13 13:08:49 +02:00
< / head >
< body >
< div id = "banner-container" >
< div id = "banner" >
2022-03-04 00:11:33 +01:00
< span id = "sfml" > Google OR-Tools 9.3< / span >
2019-06-13 13:08:49 +02:00
< / 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 > C++ Reference< / h2 >
2019-08-07 18:01:08 -07:00
< ul >
< li > < a href = "../cpp_algorithms/annotated.html" > Algorithms< / a > < / li >
2019-08-12 09:16:03 -07:00
< li > < a href = "../cpp_sat/annotated.html" > CP-SAT< / a > < / li >
2019-08-07 18:01:08 -07:00
< li > < a href = "../cpp_graph/annotated.html" > Graph< / a > < / li >
< li > < a href = "../cpp_routing/annotated.html" > Routing< / a > < / li >
< li > < a href = "../cpp_linear/annotated.html" > Linear solver< / a > < / li >
< / ul >
< / div >
2019-06-13 13:08:49 +02:00
< div id = "content" >
2019-08-07 18:01:08 -07:00
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: CP-SAT< / h1 >
< / div >
2022-01-17 21:42:14 +01:00
<!-- Generated by Doxygen 1.9.3 -->
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2020-09-01 16:00:33 +02:00
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2022-01-17 21:42:14 +01:00
/* @license-end */
< / script >
2020-09-01 16:00:33 +02:00
< div id = "main-nav" > < / div >
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
2019-06-12 22:00:29 +02:00
< / div >
2019-07-12 13:25:23 -07:00
< / div >
2020-09-01 16:00:33 +02:00
< script type = "text/javascript" >
2022-01-17 21:42:14 +01:00
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(document).ready(function(){initNavTree('cp__model__solver_8h.html',''); initResizable(); });
2020-09-01 16:00:33 +02:00
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
2019-06-12 22:00:29 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#namespaces" > Namespaces< / a > |
2022-01-17 21:42:14 +01:00
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" > < div class = "title" > cp_model_solver.h File Reference< / div > < / div >
2019-06-12 22:00:29 +02:00
< / div > <!-- header -->
< div class = "contents" >
2019-08-12 23:15:11 -07:00
2019-06-12 22:00:29 +02:00
< p > < a href = "cp__model__solver_8h_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "namespaces" name = "namespaces" > < / a >
2019-06-12 22:00:29 +02:00
Namespaces< / h2 > < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:namespaceoperations__research" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / td > < / tr >
2019-06-12 22:00:29 +02:00
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:namespaceoperations__research_1_1sat" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html" > operations_research::sat< / a > < / td > < / tr >
2019-06-12 22:00:29 +02:00
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
2022-01-17 21:42:14 +01:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
2019-06-12 22:00:29 +02:00
Functions< / h2 > < / td > < / tr >
2019-08-22 13:38:15 +02:00
< tr class = "memitem:a09d851f944ab4f305c3d9f8df99b7bf8" > < td class = "memItemLeft" align = "right" valign = "top" > CpSolverResponse  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a09d851f944ab4f305c3d9f8df99b7bf8" > Solve< / a > (const CpModelProto & model_proto)< / td > < / tr >
2022-03-04 00:11:33 +01:00
< tr class = "memdesc:a09d851f944ab4f305c3d9f8df99b7bf8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Solves the given CpModelProto and returns an instance of CpSolverResponse. < a href = "namespaceoperations__research_1_1sat.html#a09d851f944ab4f305c3d9f8df99b7bf8" > More...< / a > < br / > < / td > < / tr >
2019-08-22 13:38:15 +02:00
< tr class = "separator:a09d851f944ab4f305c3d9f8df99b7bf8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa3062797aa0396abf37dbcc99a746f12" > < td class = "memItemLeft" align = "right" valign = "top" > CpSolverResponse  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#aa3062797aa0396abf37dbcc99a746f12" > SolveWithParameters< / a > (const CpModelProto & model_proto, const SatParameters & params)< / td > < / tr >
2022-03-04 00:11:33 +01:00
< tr class = "memdesc:aa3062797aa0396abf37dbcc99a746f12" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Solves the given CpModelProto with the given parameters. < a href = "namespaceoperations__research_1_1sat.html#aa3062797aa0396abf37dbcc99a746f12" > More...< / a > < br / > < / td > < / tr >
2019-08-22 13:38:15 +02:00
< tr class = "separator:aa3062797aa0396abf37dbcc99a746f12" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:a287579e5f181fc7c89feccf1128faffb" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a287579e5f181fc7c89feccf1128faffb" > CpModelStats< / a > (const CpModelProto & model)< / td > < / tr >
2022-03-04 00:11:33 +01:00
< tr class = "memdesc:a287579e5f181fc7c89feccf1128faffb" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns a string with some statistics on the given CpModelProto. < a href = "namespaceoperations__research_1_1sat.html#a287579e5f181fc7c89feccf1128faffb" > More...< / a > < br / > < / td > < / tr >
2019-06-12 22:00:29 +02:00
< tr class = "separator:a287579e5f181fc7c89feccf1128faffb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-06-11 12:23:09 +02:00
< tr class = "memitem:a74d5c1c69142b6e668f8bc7de4e0ec7e" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a74d5c1c69142b6e668f8bc7de4e0ec7e" > CpSolverResponseStats< / a > (const CpSolverResponse & response, bool has_objective=true)< / td > < / tr >
< tr class = "memdesc:a74d5c1c69142b6e668f8bc7de4e0ec7e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns a string with some statistics on the solver response. < a href = "namespaceoperations__research_1_1sat.html#a74d5c1c69142b6e668f8bc7de4e0ec7e" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a74d5c1c69142b6e668f8bc7de4e0ec7e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:a9d67b9c66f1cb9c1dcc3415cd5af11bf" > < td class = "memItemLeft" align = "right" valign = "top" > CpSolverResponse  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a9d67b9c66f1cb9c1dcc3415cd5af11bf" > SolveCpModel< / a > (const CpModelProto & model_proto, Model *model)< / td > < / tr >
2022-03-04 00:11:33 +01:00
< tr class = "memdesc:a9d67b9c66f1cb9c1dcc3415cd5af11bf" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Solves the given CpModelProto. < a href = "namespaceoperations__research_1_1sat.html#a9d67b9c66f1cb9c1dcc3415cd5af11bf" > More...< / a > < br / > < / td > < / tr >
2019-06-12 22:00:29 +02:00
< tr class = "separator:a9d67b9c66f1cb9c1dcc3415cd5af11bf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:af52c27ecb43d6486c1a70e022b4aad39" > < td class = "memItemLeft" align = "right" valign = "top" > CpSolverResponse  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#af52c27ecb43d6486c1a70e022b4aad39" > SolveWithParameters< / a > (const CpModelProto & model_proto, const std::string & params)< / td > < / tr >
2022-03-04 00:11:33 +01:00
< tr class = "memdesc:af52c27ecb43d6486c1a70e022b4aad39" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Solves the given CpModelProto with the given sat parameters as string in JSon format, and returns an instance of CpSolverResponse. < a href = "namespaceoperations__research_1_1sat.html#af52c27ecb43d6486c1a70e022b4aad39" > More...< / a > < br / > < / td > < / tr >
2019-06-12 22:00:29 +02:00
< tr class = "separator:af52c27ecb43d6486c1a70e022b4aad39" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:a0558490428f07c5db7b6ae292001375c" > < td class = "memItemLeft" align = "right" valign = "top" > std::function< void(Model *)>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a0558490428f07c5db7b6ae292001375c" > NewFeasibleSolutionObserver< / a > (const std::function< void(const CpSolverResponse & response)> & observer)< / td > < / tr >
< tr class = "memdesc:a0558490428f07c5db7b6ae292001375c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Creates a solution observer with the model with model.Add(NewFeasibleSolutionObserver([](response){...}));. < a href = "namespaceoperations__research_1_1sat.html#a0558490428f07c5db7b6ae292001375c" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a0558490428f07c5db7b6ae292001375c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a10700832ca6bc420f2931eb707957b0b" > < td class = "memItemLeft" align = "right" valign = "top" > std::function< SatParameters(Model *)>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#a10700832ca6bc420f2931eb707957b0b" > NewSatParameters< / a > (const std::string & params)< / td > < / tr >
< tr class = "memdesc:a10700832ca6bc420f2931eb707957b0b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Creates parameters for the solver, which you can add to the model with. < a href = "namespaceoperations__research_1_1sat.html#a10700832ca6bc420f2931eb707957b0b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a10700832ca6bc420f2931eb707957b0b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adbf4fa68898b3aaa2e6de2b5d3064580" > < td class = "memItemLeft" align = "right" valign = "top" > std::function< SatParameters(Model *)>   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research_1_1sat.html#adbf4fa68898b3aaa2e6de2b5d3064580" > NewSatParameters< / a > (const SatParameters & parameters)< / td > < / tr >
< tr class = "separator:adbf4fa68898b3aaa2e6de2b5d3064580" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-06-12 22:00:29 +02:00
< / table >
< / div > <!-- contents -->
2020-09-01 16:00:33 +02:00
< / div > <!-- doc - content -->
2019-08-07 18:01:08 -07:00
< / div >
2019-06-13 13:08:49 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
2019-06-12 22:00:29 +02:00
< / html >