2019-06-13 15:36:14 +02:00
<!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"/> -->
2019-06-20 23:08:48 +02:00
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
2019-06-13 15:36:14 +02:00
< 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" >
2020-01-27 13:48:26 +01:00
< span id = "sfml" > Google OR-Tools 7.5< / span >
2019-06-13 15:36:14 +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 15:36:14 +02:00
< div id = "content" >
2019-08-07 18:01:08 -07:00
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: Graph< / h1 >
< / div >
2020-01-27 13:48:26 +01:00
<!-- Generated by Doxygen 1.8.18 -->
2019-06-13 15:36:14 +02:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
2019-07-15 17:42:24 -07:00
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
2019-06-13 15:36:14 +02:00
< / ul >
< / div >
2019-08-07 18:01:08 -07:00
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / li > < li class = "navelem" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html" > ChristofidesPathSolver< / a > < / li > < / ul >
2019-06-13 15:36:14 +02:00
< / div >
2019-08-07 18:01:08 -07:00
< / div > <!-- top -->
2019-06-13 15:36:14 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-types" > Public Types< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1ChristofidesPathSolver-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
2019-08-07 18:01:08 -07:00
< div class = "title" > ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction > < / div > < / div >
2019-06-13 15:36:14 +02:00
< / div > <!-- header -->
< div class = "contents" >
2019-08-12 23:15:11 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < h3 > template< typename CostType, typename ArcIndex = int64, typename NodeIndex = int32, typename CostFunction = std::function< CostType(NodeIndex, NodeIndex)> > < br / >
class operations_research::ChristofidesPathSolver< CostType, ArcIndex, NodeIndex, CostFunction > < / h3 >
2019-07-12 13:25:23 -07:00
2019-08-12 23:15:11 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00040" > 40< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-06-13 15:36:14 +02:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-types" > < / a >
Public Types< / h2 > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:a1d4f082de5fc3eed348d65eb30b5f3e7" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7" > MatchingAlgorithm< / a > { < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7ab66d0823917c9351a4cb68dff77f445a" > MINIMUM_WEIGHT_MATCHING< / a > ,
2019-11-14 13:52:51 -08:00
< a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7a201b88f6589fa1271207fe29f583dc96" > MINIMUM_WEIGHT_MATCHING_WITH_MIP< / a > ,
2019-08-07 18:01:08 -07:00
< a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7a99c5fe202c37dcd8ed9cc60926a4f525" > MINIMAL_WEIGHT_MATCHING< / a >
2019-06-13 15:36:14 +02:00
}< / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "separator:a1d4f082de5fc3eed348d65eb30b5f3e7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-06-13 15:36:14 +02:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr class = "memitem:a87145cf1f5a36d27fd856596a23d495a" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a87145cf1f5a36d27fd856596a23d495a" > ChristofidesPathSolver< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > num_nodes, CostFunction costs)< / td > < / tr >
< tr class = "separator:a87145cf1f5a36d27fd856596a23d495a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae2b64dddd58baf1bc5e01cb14971e52e" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#ae2b64dddd58baf1bc5e01cb14971e52e" > SetMatchingAlgorithm< / a > (< a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7" > MatchingAlgorithm< / a > matching)< / td > < / tr >
< tr class = "separator:ae2b64dddd58baf1bc5e01cb14971e52e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab558649a26fef3a74f0909ef5af45e90" > < td class = "memItemLeft" align = "right" valign = "top" > CostType  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#ab558649a26fef3a74f0909ef5af45e90" > TravelingSalesmanCost< / a > ()< / td > < / tr >
< tr class = "separator:ab558649a26fef3a74f0909ef5af45e90" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3076d9001536ea98d419faa81e7d8a47" > < td class = "memItemLeft" align = "right" valign = "top" > std::vector< < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a3076d9001536ea98d419faa81e7d8a47" > TravelingSalesmanPath< / a > ()< / td > < / tr >
< tr class = "separator:a3076d9001536ea98d419faa81e7d8a47" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-06-13 15:36:14 +02:00
< / table >
2019-08-12 23:15:11 -07:00
< h2 class = "groupheader" > Member Enumeration Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a1d4f082de5fc3eed348d65eb30b5f3e7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a1d4f082de5fc3eed348d65eb30b5f3e7" > ◆ < / a > < / span > MatchingAlgorithm< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > enum < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7" > MatchingAlgorithm< / a > < / td >
2019-06-13 15:36:14 +02:00
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > strong< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< table class = "fieldtable" >
2019-08-07 18:01:08 -07:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < a id = "a1d4f082de5fc3eed348d65eb30b5f3e7ab66d0823917c9351a4cb68dff77f445a" > < / a > MINIMUM_WEIGHT_MATCHING  < / td > < td class = "fielddoc" > < / td > < / tr >
2019-11-14 13:52:51 -08:00
< tr > < td class = "fieldname" > < a id = "a1d4f082de5fc3eed348d65eb30b5f3e7a201b88f6589fa1271207fe29f583dc96" > < / a > MINIMUM_WEIGHT_MATCHING_WITH_MIP  < / td > < td class = "fielddoc" > < / td > < / tr >
2019-08-07 18:01:08 -07:00
< tr > < td class = "fieldname" > < a id = "a1d4f082de5fc3eed348d65eb30b5f3e7a99c5fe202c37dcd8ed9cc60926a4f525" > < / a > MINIMAL_WEIGHT_MATCHING  < / td > < td class = "fielddoc" > < / td > < / tr >
2019-06-13 15:36:14 +02:00
< / table >
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00042" > 42< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a87145cf1f5a36d27fd856596a23d495a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a87145cf1f5a36d27fd856596a23d495a" > ◆ < / a > < / span > ChristofidesPathSolver()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html" > ChristofidesPathSolver< / a > < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > num_nodes< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > CostFunction  < / td >
< td class = "paramname" > < em > costs< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2020-01-27 13:48:26 +01:00
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00213" > 213< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "ae2b64dddd58baf1bc5e01cb14971e52e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae2b64dddd58baf1bc5e01cb14971e52e" > ◆ < / a > < / span > SetMatchingAlgorithm()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void SetMatchingAlgorithm < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "classoperations__research_1_1ChristofidesPathSolver.html#a1d4f082de5fc3eed348d65eb30b5f3e7" > MatchingAlgorithm< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > matching< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2019-11-14 13:52:51 -08:00
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00059" > 59< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "ab558649a26fef3a74f0909ef5af45e90" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab558649a26fef3a74f0909ef5af45e90" > ◆ < / a > < / span > TravelingSalesmanCost()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-01-27 13:48:26 +01:00
< td class = "memname" > CostType TravelingSalesmanCost< / td >
2019-06-13 15:36:14 +02:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2020-01-27 13:48:26 +01:00
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00223" > 223< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a3076d9001536ea98d419faa81e7d8a47" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3076d9001536ea98d419faa81e7d8a47" > ◆ < / a > < / span > TravelingSalesmanPath()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2020-01-27 13:48:26 +01:00
< td class = "memname" > std::vector< < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > > TravelingSalesmanPath< / td >
2019-06-13 15:36:14 +02:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2020-01-27 13:48:26 +01:00
< p class = "definition" > Definition at line < a class = "el" href = "christofides_8h_source.html#l00233" > 233< / a > of file < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > .< / p >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "christofides_8h_source.html" > christofides.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
2019-08-07 18:01:08 -07:00
< / div >
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >