2017-02-23 06:26:44 +08: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 >
< 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.5" / >
< title > Faiss: faiss::SimulatedAnnealingOptimizer Struct 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 = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< link href = "doxygen.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 style = "padding-left: 0.5em;" >
< div id = "projectname" > Faiss
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Friends< / a > < / 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 id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacefaiss.html" > faiss< / a > < / li > < li class = "navelem" > < a class = "el" href = "structfaiss_1_1SimulatedAnnealingOptimizer.html" > SimulatedAnnealingOptimizer< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-attribs" > Public Attributes< / a > |
< a href = "structfaiss_1_1SimulatedAnnealingOptimizer-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > faiss::SimulatedAnnealingOptimizer Struct Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > Simulated annealing optimization algorithm for permutations.
< a href = "structfaiss_1_1SimulatedAnnealingOptimizer.html#details" > More...< / a > < / p >
< p > < code > #include < < a class = "el" href = "PolysemousTraining_8h_source.html" > PolysemousTraining.h< / a > > < / code > < / p >
< div class = "dynheader" >
Inheritance diagram for faiss::SimulatedAnnealingOptimizer:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "structfaiss_1_1SimulatedAnnealingOptimizer.png" usemap = "#faiss::SimulatedAnnealingOptimizer_map" alt = "" / >
< map id = "faiss::SimulatedAnnealingOptimizer_map" name = "faiss::SimulatedAnnealingOptimizer_map" >
< area href = "structfaiss_1_1SimulatedAnnealingParameters.html" title = "parameters used for the simulated annealing method " alt = "faiss::SimulatedAnnealingParameters" shape = "rect" coords = "0,0,219,24" / >
< / map >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:ab258eaf892742e37dd2c3bfd3b1c39e1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ab258eaf892742e37dd2c3bfd3b1c39e1" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1SimulatedAnnealingOptimizer.html#ab258eaf892742e37dd2c3bfd3b1c39e1" > SimulatedAnnealingOptimizer< / a > (< a class = "el" href = "structfaiss_1_1PermutationObjective.html" > PermutationObjective< / a > *obj, const < a class = "el" href = "structfaiss_1_1SimulatedAnnealingParameters.html" > SimulatedAnnealingParameters< / a > & p)< / td > < / tr >
< tr class = "memdesc:ab258eaf892742e37dd2c3bfd3b1c39e1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > logs values of the cost function < br / > < / td > < / tr >
< tr class = "separator:ab258eaf892742e37dd2c3bfd3b1c39e1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a889fe7c09ac1d583f9f9bb0023dfc093" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a889fe7c09ac1d583f9f9bb0023dfc093" > < / a >
double  < / td > < td class = "memItemRight" valign = "bottom" > < b > optimize< / b > (int *perm)< / td > < / tr >
< tr class = "separator:a889fe7c09ac1d583f9f9bb0023dfc093" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a27c4d25179bfa7d2d2701a6599f9fa09" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a27c4d25179bfa7d2d2701a6599f9fa09" > < / a >
double  < / td > < td class = "memItemRight" valign = "bottom" > < b > run_optimization< / b > (int *best_perm)< / td > < / tr >
< tr class = "separator:a27c4d25179bfa7d2d2701a6599f9fa09" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-attribs" > < / a >
Public Attributes< / h2 > < / td > < / tr >
< tr class = "memitem:a5a032444a7c2efc137f7e0b217846d80" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a5a032444a7c2efc137f7e0b217846d80" > < / a >
< a class = "el" href = "structfaiss_1_1PermutationObjective.html" > PermutationObjective< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > obj< / b > < / td > < / tr >
< tr class = "separator:a5a032444a7c2efc137f7e0b217846d80" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a90edfc401372aa1a2a832b403e26bfd1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a90edfc401372aa1a2a832b403e26bfd1" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1SimulatedAnnealingOptimizer.html#a90edfc401372aa1a2a832b403e26bfd1" > n< / a > < / td > < / tr >
< tr class = "memdesc:a90edfc401372aa1a2a832b403e26bfd1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > size of the permutation < br / > < / td > < / tr >
< tr class = "separator:a90edfc401372aa1a2a832b403e26bfd1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a5f506ab03520f0562134fc35119819cb" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a5f506ab03520f0562134fc35119819cb" > < / a >
FILE *  < / td > < td class = "memItemRight" valign = "bottom" > < b > logfile< / b > < / td > < / tr >
< tr class = "separator:a5f506ab03520f0562134fc35119819cb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3a4020a699836109ada732e3b78d8b71" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a3a4020a699836109ada732e3b78d8b71" > < / a >
< a class = "el" href = "structfaiss_1_1RandomGenerator.html" > RandomGenerator< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > rnd< / b > < / td > < / tr >
< tr class = "separator:a3a4020a699836109ada732e3b78d8b71" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa8ff19f97482c6213b2a8ff3b190412b" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aa8ff19f97482c6213b2a8ff3b190412b" > < / a >
double  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1SimulatedAnnealingOptimizer.html#aa8ff19f97482c6213b2a8ff3b190412b" > init_cost< / a > < / td > < / tr >
< tr class = "memdesc:aa8ff19f97482c6213b2a8ff3b190412b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > remember intial cost of optimization < br / > < / td > < / tr >
< tr class = "separator:aa8ff19f97482c6213b2a8ff3b190412b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_attribs_structfaiss_1_1SimulatedAnnealingParameters')" > < img src = "closed.png" alt = "-" / >   Public Attributes inherited from < a class = "el" href = "structfaiss_1_1SimulatedAnnealingParameters.html" > faiss::SimulatedAnnealingParameters< / a > < / td > < / tr >
< tr class = "memitem:a217f2edf539c4c5b7acb9b54129ba024 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a217f2edf539c4c5b7acb9b54129ba024" > < / a >
double  < / td > < td class = "memItemRight" valign = "bottom" > < b > init_temperature< / b > < / td > < / tr >
< tr class = "separator:a217f2edf539c4c5b7acb9b54129ba024 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa504c46bab0faa2ce816df8294b55ce5 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aa504c46bab0faa2ce816df8294b55ce5" > < / a >
double  < / td > < td class = "memItemRight" valign = "bottom" > < b > temperature_decay< / b > < / td > < / tr >
< tr class = "separator:aa504c46bab0faa2ce816df8294b55ce5 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a782872c517c1a0b8211c6179f60e6d8e inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a782872c517c1a0b8211c6179f60e6d8e" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > n_iter< / b > < / td > < / tr >
< tr class = "separator:a782872c517c1a0b8211c6179f60e6d8e inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adf0dc7ec9cf5cfb6b043b2610e2beff4 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "adf0dc7ec9cf5cfb6b043b2610e2beff4" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > n_redo< / b > < / td > < / tr >
< tr class = "separator:adf0dc7ec9cf5cfb6b043b2610e2beff4 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae6b87ff7698b724937bc00c0845a71ad inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ae6b87ff7698b724937bc00c0845a71ad" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > seed< / b > < / td > < / tr >
< tr class = "separator:ae6b87ff7698b724937bc00c0845a71ad inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae0bbe4df85cb764234d6a700d0db00c4 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ae0bbe4df85cb764234d6a700d0db00c4" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > verbose< / b > < / td > < / tr >
< tr class = "separator:ae0bbe4df85cb764234d6a700d0db00c4 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1a92240b3cfe75d58c802dbedf4e4c2e inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a1a92240b3cfe75d58c802dbedf4e4c2e" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > only_bit_flips< / b > < / td > < / tr >
< tr class = "separator:a1a92240b3cfe75d58c802dbedf4e4c2e inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a2a66766c4a8ca802c99a4c1315e197d9 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a2a66766c4a8ca802c99a4c1315e197d9" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < b > init_random< / b > < / td > < / tr >
< tr class = "separator:a2a66766c4a8ca802c99a4c1315e197d9 inherit pub_attribs_structfaiss_1_1SimulatedAnnealingParameters" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Simulated annealing optimization algorithm for permutations. < / p >
2018-12-20 00:48:35 +08:00
< p > Definition at line < a class = "el" href = "PolysemousTraining_8h_source.html#l00095" > 95< / a > of file < a class = "el" href = "PolysemousTraining_8h_source.html" > PolysemousTraining.h< / a > .< / p >
2017-02-23 06:26:44 +08:00
< / div > < hr / > The documentation for this struct was generated from the following files:< ul >
2018-12-20 00:48:35 +08:00
< li > /tmp/faiss/< a class = "el" href = "PolysemousTraining_8h_source.html" > PolysemousTraining.h< / a > < / li >
< li > /tmp/faiss/< a class = "el" href = "PolysemousTraining_8cpp_source.html" > PolysemousTraining.cpp< / a > < / li >
2017-02-23 06:26:44 +08:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.5
< / small > < / address >
< / body >
< / html >