2020-09-01 16:00:33 +02:00
<!-- HTML header for doxygen 1.8.18 -->
<!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" / >
2022-01-17 21:42:14 +01:00
< meta name = "generator" content = "Doxygen 1.9.3" / >
2020-09-01 16:00:33 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > OR-Tools: hungarian_test.cc File Reference< / 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 = "navtree.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "styleSheet.tmp.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 = "projectlogo" > < img alt = "Logo" src = "orLogo.png" / > < / td >
< td id = "projectalign" style = "padding-left: 0.5em;" >
< div id = "projectname" > OR-Tools
2022-03-04 00:11:33 +01:00
  < span id = "projectnumber" > 9.3< / span >
2020-09-01 16:00:33 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
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">
< / div >
< / div >
< 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('hungarian__test_8cc.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 >
< div class = "header" >
< div class = "summary" >
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#define-members" > Macros< / a > |
< a href = "#func-members" > Functions< / a > < / div >
2022-01-17 21:42:14 +01:00
< div class = "headertitle" > < div class = "title" > hungarian_test.cc File Reference< / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- header -->
< div class = "contents" >
< p > < a href = "hungarian__test_8cc_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 >
2020-09-01 16:00:33 +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 >
2021-04-27 23:00:03 +02:00
< tr class = "memdesc:namespaceoperations__research" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Collection of objects used to extend the < a class = "el" href = "classoperations__research_1_1_constraint.html" title = "A constraint is the main modeling object." > Constraint< / a > < a class = "el" href = "classoperations__research_1_1_solver.html" title = "Solver Class." > Solver< / a > library. < br / > < / td > < / tr >
2020-09-01 16:00:33 +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 = "define-members" name = "define-members" > < / a >
2020-09-01 16:00:33 +02:00
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:a80f4349f54433856a362447ba5593906" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "hungarian__test_8cc.html#a80f4349f54433856a362447ba5593906" > MATRIX_TEST< / a > < / td > < / tr >
< tr class = "separator:a80f4349f54433856a362447ba5593906" > < 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 >
2020-09-01 16:00:33 +02:00
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:aaa8d9a49b1a63a8931a9d542c26b62d8" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#aaa8d9a49b1a63a8931a9d542c26b62d8" > GenericCheck< / a > (const int expected_assignment_size, const absl::flat_hash_map< int, int > & direct_assignment, const absl::flat_hash_map< int, int > & reverse_assignment, const int expected_agents[], const int expected_tasks[])< / td > < / tr >
< tr class = "separator:aaa8d9a49b1a63a8931a9d542c26b62d8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-01-17 21:42:14 +01:00
< tr class = "memitem:ab5bea9dc4042e821f42017d8a2ddb51b" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#ab5bea9dc4042e821f42017d8a2ddb51b" > TestMinimization< / a > (const std::vector< std::vector< double > > & < a class = "el" href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > , const int expected_assignment_size, const int expected_agents[], const int expected_tasks[])< / td > < / tr >
< tr class = "separator:ab5bea9dc4042e821f42017d8a2ddb51b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4aa4c1802c8d88cdbf4557e487a76030" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#a4aa4c1802c8d88cdbf4557e487a76030" > TestMaximization< / a > (const std::vector< std::vector< double > > & < a class = "el" href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > , const int expected_assignment_size, const int expected_agents[], const int expected_tasks[])< / td > < / tr >
< tr class = "separator:a4aa4c1802c8d88cdbf4557e487a76030" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "memitem:a817553ad64738460e5c339f24fe5ea13" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#a817553ad64738460e5c339f24fe5ea13" > TEST< / a > (LinearAssignmentTest, NullMatrix)< / td > < / tr >
< tr class = "separator:a817553ad64738460e5c339f24fe5ea13" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-12-14 13:41:01 +01:00
< tr class = "memitem:a25e8525177831e874798ca656d0f6f0c" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#a25e8525177831e874798ca656d0f6f0c" > TEST< / a > (LinearAssignmentTest, InvalidMatrix)< / td > < / tr >
< tr class = "separator:a25e8525177831e874798ca656d0f6f0c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-09-01 16:00:33 +02:00
< tr class = "memitem:a2cba8c207c6695f1c1c21e8901a63add" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#a2cba8c207c6695f1c1c21e8901a63add" > TEST< / a > (LinearAssignmentTest, SizeOneMatrix)< / td > < / tr >
< tr class = "separator:a2cba8c207c6695f1c1c21e8901a63add" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad55d65140946bc20bb288a4364d9cbdb" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#ad55d65140946bc20bb288a4364d9cbdb" > TEST< / a > (LinearAssignmentTest, Small4x4Matrix)< / td > < / tr >
< tr class = "separator:ad55d65140946bc20bb288a4364d9cbdb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac690c357cab3e484126077d1a6e56bd2" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#ac690c357cab3e484126077d1a6e56bd2" > TEST< / a > (LinearAssignmentTest, Small3x4Matrix)< / td > < / tr >
< tr class = "separator:ac690c357cab3e484126077d1a6e56bd2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad3bcc056122d299133d834f748002690" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceoperations__research.html#ad3bcc056122d299133d834f748002690" > TEST< / a > (LinearAssignmentTest, Small4x3Matrix)< / td > < / tr >
< tr class = "separator:ad3bcc056122d299133d834f748002690" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
2022-01-17 21:42:14 +01:00
< a id = "a80f4349f54433856a362447ba5593906" name = "a80f4349f54433856a362447ba5593906" > < / a >
2020-09-01 16:00:33 +02:00
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a80f4349f54433856a362447ba5593906" > ◆ < / a > < / span > MATRIX_TEST< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define MATRIX_TEST< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-01-17 21:42:14 +01:00
< b > Value:< / b > < div class = "fragment" > < div class = "line" > { \< / div >
< div class = "line" > std::vector< std::vector< double> > < a class = "code hl_variable" href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > (kMatrixHeight); \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > < a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > = 0; < a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > < kMatrixHeight; ++< a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > ) { \< / div >
< div class = "line" > cost[< a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > ].resize(kMatrixWidth); \< / div >
< div class = "line" > for (< span class = "keywordtype" > int< / span > < a class = "code hl_variable" href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > = 0; < a class = "code hl_variable" href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > < kMatrixWidth; ++< a class = "code hl_variable" href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > ) { \< / div >
< div class = "line" > cost[< a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > ][< a class = "code hl_variable" href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > ] = kCost[< a class = "code hl_variable" href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > ][< a class = "code hl_variable" href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > ]; \< / div >
< div class = "line" > } \< / div >
< div class = "line" > } \< / div >
< div class = "line" > EXPECT_EQ(< a class = "code hl_define" href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > (expected_agents_for_min), \< / div >
< div class = "line" > < a class = "code hl_define" href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > (expected_tasks_for_min)); \< / div >
< div class = "line" > EXPECT_EQ(< a class = "code hl_define" href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > (expected_agents_for_max), \< / div >
< div class = "line" > < a class = "code hl_define" href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > (expected_tasks_for_max)); \< / div >
< div class = "line" > const < span class = "keywordtype" > int< / span > assignment_size = < a class = "code hl_define" href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > (expected_agents_for_max); \< / div >
< div class = "line" > TestMinimization(< a class = "code hl_variable" href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > , assignment_size, expected_agents_for_min, \< / div >
< div class = "line" > expected_tasks_for_min); \< / div >
< div class = "line" > TestMaximization(< a class = "code hl_variable" href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > , assignment_size, expected_agents_for_max, \< / div >
< div class = "line" > expected_tasks_for_max); \< / div >
< div class = "line" > }< / div >
< div class = "ttc" id = "amacros_8h_html_ac55fdd6aa61539c49b1b1f5d38a0ed73" > < div class = "ttname" > < a href = "macros_8h.html#ac55fdd6aa61539c49b1b1f5d38a0ed73" > arraysize< / a > < / div > < div class = "ttdeci" > #define arraysize(array)< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "macros_8h_source.html#l00039" > macros.h:39< / a > < / div > < / div >
< div class = "ttc" id = "amarkowitz_8cc_html_aa9d6c98fdf8d89b0e2321fda02adc82c" > < div class = "ttname" > < a href = "markowitz_8cc.html#aa9d6c98fdf8d89b0e2321fda02adc82c" > col< / a > < / div > < div class = "ttdeci" > ColIndex col< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "markowitz_8cc_source.html#l00183" > markowitz.cc:183< / a > < / div > < / div >
< div class = "ttc" id = "amarkowitz_8cc_html_aea35f36ba98d5bbd8d033382f50c9e52" > < div class = "ttname" > < a href = "markowitz_8cc.html#aea35f36ba98d5bbd8d033382f50c9e52" > row< / a > < / div > < div class = "ttdeci" > RowIndex row< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "markowitz_8cc_source.html#l00182" > markowitz.cc:182< / a > < / div > < / div >
< div class = "ttc" id = "arouting__flow_8cc_html_a75d7b5e4cab1e156cc7a2c5eba1e16f1" > < div class = "ttname" > < a href = "routing__flow_8cc.html#a75d7b5e4cab1e156cc7a2c5eba1e16f1" > cost< / a > < / div > < div class = "ttdeci" > int64_t cost< / div > < div class = "ttdef" > < b > Definition:< / b > < a href = "routing__flow_8cc_source.html#l00152" > routing_flow.cc:152< / a > < / div > < / div >
2020-09-01 16:00:33 +02:00
< / div > <!-- fragment -->
2021-12-14 13:41:01 +01:00
< p class = "definition" > Definition at line < a class = "el" href = "hungarian__test_8cc_source.html#l00092" > 92< / a > of file < a class = "el" href = "hungarian__test_8cc_source.html" > hungarian_test.cc< / a > .< / p >
2020-09-01 16:00:33 +02:00
< / div >
< / div >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
<!-- HTML footer for doxygen 1.8.18 -->
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_a7cc1eeded8f693d0da6c729bc88c45a.html" > ortools< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_80dda7a75b0dfcf996988638a63eb03a.html" > algorithms< / a > < / li > < li class = "navelem" > < a class = "el" href = "hungarian__test_8cc.html" > hungarian_test.cc< / a > < / li >
< li class = "footer" > Generated by
< a href = "http://www.doxygen.org/index.html" >
2022-01-17 21:42:14 +01:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.9.3 < / li >
2020-09-01 16:00:33 +02:00
< / ul >
< / div >
< / body >
< / html >