Skip to content

Commit 19a9ba5

Browse files
author
Documenter.jl
committed
build based on 57e84e6
1 parent d84449a commit 19a9ba5

26 files changed

Lines changed: 440 additions & 3023 deletions

File tree

dev/.documenter-siteinfo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"documenter":{"julia_version":"1.11.3","generation_timestamp":"2025-02-25T09:36:30","documenter_version":"1.8.1"}}
1+
{"documenter":{"julia_version":"1.11.3","generation_timestamp":"2025-03-04T12:40:40","documenter_version":"1.8.1"}}

dev/api/0_interface/index.html

Lines changed: 75 additions & 0 deletions
Large diffs are not rendered by default.

dev/api/argmax/index.html

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

dev/api/decision_focused/index.html

Lines changed: 0 additions & 68 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Fixed-size shortest path · DecisionFocusedLearningBenchmarks.jl</title><meta name="title" content="Fixed-size shortest path · DecisionFocusedLearningBenchmarks.jl"/><meta property="og:title" content="Fixed-size shortest path · DecisionFocusedLearningBenchmarks.jl"/><meta property="twitter:title" content="Fixed-size shortest path · DecisionFocusedLearningBenchmarks.jl"/><meta name="description" content="Documentation for DecisionFocusedLearningBenchmarks.jl."/><meta property="og:description" content="Documentation for DecisionFocusedLearningBenchmarks.jl."/><meta property="twitter:description" content="Documentation for DecisionFocusedLearningBenchmarks.jl."/><script data-outdated-warner src="../../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../search_index.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/catppuccin-mocha.css" data-theme-name="catppuccin-mocha"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/catppuccin-macchiato.css" data-theme-name="catppuccin-macchiato"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/catppuccin-frappe.css" data-theme-name="catppuccin-frappe"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/catppuccin-latte.css" data-theme-name="catppuccin-latte"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../../">DecisionFocusedLearningBenchmarks.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../../">Home</a></li><li><span class="tocitem">Tutorials</span></li><li><span class="tocitem">Benchmark problems list</span><ul><li><a class="tocitem" href="../../benchmarks/subset_selection/">Subset Selection</a></li><li><a class="tocitem" href="../../benchmarks/fixed_size_shortest_path/">Shortest paths</a></li><li><a class="tocitem" href="../../benchmarks/warcraft/">Warcraft</a></li><li><a class="tocitem" href="../../benchmarks/portfolio_optimization/">Portfolio Optimization</a></li><li><a class="tocitem" href="../../benchmarks/vsp/">Stochastic Vehicle Scheduling</a></li></ul></li><li><span class="tocitem">API reference</span><ul><li><a class="tocitem" href="../0_interface/">Interface</a></li><li><a class="tocitem" href="../argmax/">Argmax</a></li><li class="is-active"><a class="tocitem" href>Fixed-size shortest path</a><ul class="internal"><li><a class="tocitem" href="#Public"><span>Public</span></a></li><li><a class="tocitem" href="#Private"><span>Private</span></a></li></ul></li><li><a class="tocitem" href="../portfolio_optimization/">Subset selection</a></li><li><a class="tocitem" href="../ranking/">Ranking</a></li><li><a class="tocitem" href="../subset_selection/">Subset selection</a></li><li><a class="tocitem" href="../vsp/">Stochastic Vehicle Scheduling</a></li><li><a class="tocitem" href="../warcraft/">Warcraft</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">API reference</a></li><li class="is-active"><a href>Fixed-size shortest path</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Fixed-size shortest path</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/main/docs/src/api/fixed_shortest_path.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="Fixed-size-shortest-path"><a class="docs-heading-anchor" href="#Fixed-size-shortest-path">Fixed-size shortest path</a><a id="Fixed-size-shortest-path-1"></a><a class="docs-heading-anchor-permalink" href="#Fixed-size-shortest-path" title="Permalink"></a></h1><h2 id="Public"><a class="docs-heading-anchor" href="#Public">Public</a><a id="Public-1"></a><a class="docs-heading-anchor-permalink" href="#Public" title="Permalink"></a></h2><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark" href="#DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark"><code>DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark</code></a><span class="docstring-category">Type</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">struct FixedSizeShortestPathBenchmark &lt;: AbstractBenchmark</code></pre><p>Benchmark problem for the shortest path problem. In this benchmark, all graphs are acyclic directed grids, all of the same size <code>grid_size</code>. Features are given at instance level (one dimensional vector of length <code>p</code> for each graph).</p><p>Data is generated using the process described in: <a href="https://arxiv.org/abs/2307.13565">https://arxiv.org/abs/2307.13565</a>.</p><p><strong>Fields</strong></p><ul><li><p><code>graph::Graphs.SimpleGraphs.SimpleDiGraph{Int64}</code>: grid graph instance</p></li><li><p><code>grid_size::Tuple{Int64, Int64}</code>: grid size of graphs</p></li><li><p><code>p::Int64</code>: size of feature vectors</p></li><li><p><code>deg::Int64</code>: degree of formula between features and true weights</p></li><li><p><code>ν::Float32</code>: multiplicative noise for true weights sampled between [1-ν, 1+ν], should be between 0 and 1</p></li></ul></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/57e84e64747b00c4951ecdd62b50f6fd86aa8bf3/src/FixedSizeShortestPath/FixedSizeShortestPath.jl#L12">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark-Tuple{}" href="#DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark-Tuple{}"><code>DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark</code></a><span class="docstring-category">Method</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">FixedSizeShortestPathBenchmark(
3+
;
4+
grid_size,
5+
p,
6+
deg,
7+
ν
8+
) -&gt; FixedSizeShortestPathBenchmark
9+
</code></pre><p>Constructor for <a href="#DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.FixedSizeShortestPathBenchmark"><code>FixedSizeShortestPathBenchmark</code></a>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/57e84e64747b00c4951ecdd62b50f6fd86aa8bf3/src/FixedSizeShortestPath/FixedSizeShortestPath.jl#L44">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="DecisionFocusedLearningBenchmarks.Utils.generate_dataset" href="#DecisionFocusedLearningBenchmarks.Utils.generate_dataset"><code>DecisionFocusedLearningBenchmarks.Utils.generate_dataset</code></a><span class="docstring-category">Function</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">generate_dataset(
10+
bench::FixedSizeShortestPathBenchmark;
11+
...
12+
) -&gt; Vector
13+
generate_dataset(
14+
bench::FixedSizeShortestPathBenchmark,
15+
dataset_size::Int64;
16+
seed,
17+
type
18+
) -&gt; Vector
19+
</code></pre><p>Generate dataset for the shortest path problem.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/57e84e64747b00c4951ecdd62b50f6fd86aa8bf3/src/FixedSizeShortestPath/FixedSizeShortestPath.jl#L106">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="DecisionFocusedLearningBenchmarks.Utils.generate_maximizer-Tuple{FixedSizeShortestPathBenchmark}" href="#DecisionFocusedLearningBenchmarks.Utils.generate_maximizer-Tuple{FixedSizeShortestPathBenchmark}"><code>DecisionFocusedLearningBenchmarks.Utils.generate_maximizer</code></a><span class="docstring-category">Method</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">generate_maximizer(
20+
bench::FixedSizeShortestPathBenchmark;
21+
use_dijkstra
22+
) -&gt; DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.var&quot;#shortest_path_maximizer#8&quot;{DecisionFocusedLearningBenchmarks.FixedSizeShortestPath.var&quot;#shortest_path_maximizer#5#9&quot;{typeof(Graphs.dijkstra_shortest_paths), Vector{Int64}, Vector{Int64}, Int64, Int64, Graphs.SimpleGraphs.SimpleDiGraph{Int64}}}
23+
</code></pre><p>Outputs a function that computes the longest path on the grid graph, given edge weights θ as input.</p><pre><code class="language-julia hljs">maximizer = generate_maximizer(bench)
24+
maximizer(θ)</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/57e84e64747b00c4951ecdd62b50f6fd86aa8bf3/src/FixedSizeShortestPath/FixedSizeShortestPath.jl#L63">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="DecisionFocusedLearningBenchmarks.Utils.generate_statistical_model-Tuple{FixedSizeShortestPathBenchmark}" href="#DecisionFocusedLearningBenchmarks.Utils.generate_statistical_model-Tuple{FixedSizeShortestPathBenchmark}"><code>DecisionFocusedLearningBenchmarks.Utils.generate_statistical_model</code></a><span class="docstring-category">Method</span><span class="is-flex-grow-1 docstring-article-toggle-button" title="Collapse docstring"></span></header><section><div><pre><code class="language-julia hljs">generate_statistical_model(
25+
bench::FixedSizeShortestPathBenchmark
26+
) -&gt; Flux.Chain{T} where T&lt;:Tuple{Flux.Dense{typeof(identity), Matrix{Float32}}}
27+
</code></pre><p>Initialize a linear model for <code>bench</code> using <code>Flux</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaDecisionFocusedLearning/DecisionFocusedLearningBenchmarks.jl/blob/57e84e64747b00c4951ecdd62b50f6fd86aa8bf3/src/FixedSizeShortestPath/FixedSizeShortestPath.jl#L147">source</a></section></article><h2 id="Private"><a class="docs-heading-anchor" href="#Private">Private</a><a id="Private-1"></a><a class="docs-heading-anchor-permalink" href="#Private" title="Permalink"></a></h2></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../argmax/">« Argmax</a><a class="docs-footer-nextpage" href="../portfolio_optimization/">Subset selection »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.1 on <span class="colophon-date" title="Tuesday 4 March 2025 12:40">Tuesday 4 March 2025</span>. Using Julia version 1.11.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

0 commit comments

Comments
 (0)