Skip to content

Commit c626c22

Browse files
authored
Merge pull request #147 from simopt-admin/refactor_docs
Update Documentation Structure
2 parents f3e77bb + e52259e commit c626c22

48 files changed

Lines changed: 3390 additions & 3359 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sphinx.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Sphinx Docs Build
2+
3+
on:
4+
push:
5+
branches: [ "master", "development" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
ref: ${{ github.ref }}
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.9'
21+
22+
- name: Install dependencies
23+
run: pip install -r docs/requirements.txt
24+
25+
- name: Build documentation
26+
run: sphinx-build -b html docs/source docs/_build/html
27+
28+
- name: Commit and push changes
29+
run: |
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git add docs/_build/html
33+
git diff --quiet && echo "No changes to commit" || (git commit -m "Automated documentation update" && git push origin HEAD:${GITHUB_REF#refs/heads/})
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,104 @@
1-
Model: <model_name> (<model_abbreviation>)
2-
==========================================
3-
4-
Description:
5-
------------
6-
<A paragraph describing the stochastic model. Use math if it is helpful.>
7-
8-
Sample math... :math:`S = 1500`
9-
10-
Sample math...
11-
12-
.. math::
13-
14-
\frac{ \sum_{t=0}^{N}f(t,k) }{N}
15-
16-
Sources of Randomness:
17-
----------------------
18-
<The number and nature of sources of randomness.>
19-
20-
Model Factors:
21-
--------------
22-
* <factor1name>: <short description>
23-
24-
* Default: <default value>
25-
26-
* <factor2name>: <short description>
27-
28-
* Default: <default value>
29-
30-
* <factor3name>: <short description>
31-
32-
* Default: <default value>
33-
34-
Responses:
35-
----------
36-
* <response1name>: <short description>
37-
38-
* <response2name>: <short description>
39-
40-
* <response3name>: <short description>
41-
42-
43-
References:
44-
===========
45-
This model is adapted from the article <article name with full citation + hyperlink to journal/arxiv page>
46-
47-
48-
49-
50-
Optimization Problem: <problem_name> (<problem_abbrev>)
51-
========================================================
52-
53-
Decision Variables:
54-
-------------------
55-
* <dv1name that matches model factor name>
56-
* <dv2name that matches model factor name>
57-
58-
Objectives:
59-
-----------
60-
<Description using response names. Use math if it is helpful.>
61-
62-
Constraints:
63-
------------
64-
<Description using response names. Use math if it is helpful.>
65-
66-
Problem Factors:
67-
----------------
68-
* <factor1name>: <short description>
69-
70-
* Default: <default value>
71-
72-
* <factor2name>: <short description>
73-
74-
* Default: <default value>
75-
76-
Fixed Model Factors:
77-
--------------------
78-
* <factor1name>: <fixed value>
79-
80-
* <factor2name>: <fixed value>
81-
82-
Starting Solution:
83-
------------------
84-
* <dv1name>: <dv1initialvalue>
85-
86-
* <dv2name>: <dv2initialvalue>
87-
88-
Random Solutions:
89-
------------------
90-
<description of how to generate random solutions>
91-
92-
Optimal Solution:
93-
-----------------
94-
<if known, otherwise unknown>
95-
96-
Optimal Objective Function Value:
97-
---------------------------------
98-
<if known, otherwise unknown>
99-
100-
101-
Optimization Problem: <problem_name> (<problem_abbrev>)
102-
========================================================
103-
104-
...
1+
Model: <model_name> (<model_abbreviation>)
2+
==========================================
3+
4+
Description:
5+
------------
6+
<A paragraph describing the stochastic model. Use math if it is helpful.>
7+
8+
Sample math... :math:`S = 1500`
9+
10+
Sample math...
11+
12+
.. math::
13+
14+
\frac{ \sum_{t=0}^{N}f(t,k) }{N}
15+
16+
Sources of Randomness:
17+
----------------------
18+
<The number and nature of sources of randomness.>
19+
20+
Model Factors:
21+
--------------
22+
* <factor1name>: <short description>
23+
24+
* Default: <default value>
25+
26+
* <factor2name>: <short description>
27+
28+
* Default: <default value>
29+
30+
* <factor3name>: <short description>
31+
32+
* Default: <default value>
33+
34+
Responses:
35+
----------
36+
* <response1name>: <short description>
37+
38+
* <response2name>: <short description>
39+
40+
* <response3name>: <short description>
41+
42+
43+
References:
44+
===========
45+
This model is adapted from the article <article name with full citation + hyperlink to journal/arxiv page>
46+
47+
48+
49+
50+
Optimization Problem: <problem_name> (<problem_abbrev>)
51+
========================================================
52+
53+
Decision Variables:
54+
-------------------
55+
* <dv1name that matches model factor name>
56+
* <dv2name that matches model factor name>
57+
58+
Objectives:
59+
-----------
60+
<Description using response names. Use math if it is helpful.>
61+
62+
Constraints:
63+
------------
64+
<Description using response names. Use math if it is helpful.>
65+
66+
Problem Factors:
67+
----------------
68+
* <factor1name>: <short description>
69+
70+
* Default: <default value>
71+
72+
* <factor2name>: <short description>
73+
74+
* Default: <default value>
75+
76+
Fixed Model Factors:
77+
--------------------
78+
* <factor1name>: <fixed value>
79+
80+
* <factor2name>: <fixed value>
81+
82+
Starting Solution:
83+
------------------
84+
* <dv1name>: <dv1initialvalue>
85+
86+
* <dv2name>: <dv2initialvalue>
87+
88+
Random Solutions:
89+
------------------
90+
<description of how to generate random solutions>
91+
92+
Optimal Solution:
93+
-----------------
94+
<if known, otherwise unknown>
95+
96+
Optimal Objective Function Value:
97+
---------------------------------
98+
<if known, otherwise unknown>
99+
100+
101+
Optimization Problem: <problem_name> (<problem_abbrev>)
102+
========================================================
103+
104+
...
Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
Solver: <solver_name> (<solver_abbreviation>)
2-
=============================================
3-
4-
Description:
5-
------------
6-
<A paragraph describing the solver algorithm. Use math if it is helpful.>
7-
8-
Sample math... :math:`S = 1500`
9-
10-
Sample math...
11-
12-
.. math::
13-
14-
\frac{ \sum_{t=0}^{N}f(t,k) }{N}
15-
16-
17-
Modifications & Implementation:
18-
-------------------------------
19-
<What changed from the original algorithm? Other implementation choices like how initial points are chosen, etc.>
20-
21-
Scope:
22-
------
23-
<The types of models that can be solved (i.e. objective_type, constraint_type, and variable_type).>
24-
25-
Solver Factors:
26-
---------------
27-
* <factor1name>: <short description>
28-
29-
* Default: <default value>
30-
31-
* <factor2name>: <short description>
32-
33-
* Default: <default value>
34-
35-
* <factor3name>: <short description>
36-
37-
* Default: <default value>
38-
39-
40-
References:
41-
===========
1+
Solver: <solver_name> (<solver_abbreviation>)
2+
=============================================
3+
4+
Description:
5+
------------
6+
<A paragraph describing the solver algorithm. Use math if it is helpful.>
7+
8+
Sample math... :math:`S = 1500`
9+
10+
Sample math...
11+
12+
.. math::
13+
14+
\frac{ \sum_{t=0}^{N}f(t,k) }{N}
15+
16+
17+
Modifications & Implementation:
18+
-------------------------------
19+
<What changed from the original algorithm? Other implementation choices like how initial points are chosen, etc.>
20+
21+
Scope:
22+
------
23+
<The types of models that can be solved (i.e. objective_type, constraint_type, and variable_type).>
24+
25+
Solver Factors:
26+
---------------
27+
* <factor1name>: <short description>
28+
29+
* Default: <default value>
30+
31+
* <factor2name>: <short description>
32+
33+
* Default: <default value>
34+
35+
* <factor3name>: <short description>
36+
37+
* Default: <default value>
38+
39+
40+
References:
41+
===========
4242
This solver is adapted from the article <article name with full citation + hyperlink to journal/arxiv page>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
GUI module
2-
==========
3-
4-
.. automodule:: GUI
5-
:members:
6-
:undoc-members:
7-
:show-inheritance:
1+
GUI module
2+
==========
3+
4+
.. automodule:: GUI
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

0 commit comments

Comments
 (0)