Skip to content

Commit

Permalink
Merge pull request #12 from SECQUOIA/testing-local-build-deployment
Browse files Browse the repository at this point in the history
Testing local build deployment
  • Loading branch information
bernalde authored Jan 14, 2025
2 parents 3e83e99 + c0af494 commit 216687d
Show file tree
Hide file tree
Showing 536 changed files with 42,660 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@ then
`jupyter-book build ./`
to build the current working directory into a jupyter-book.

The html is in the folder `_build\html\` and you can preview the book by opening the file `_build\html\index.html`
The html is in the folder `_build\html\` and you can preview the book by opening the file `_build\html\index.html` in your browser, using VSCode's preview functionality (recommended), or running a the file via a browser executable in command line.

Following this, to deploy your build to the github page, we will be using the `ghp-import` library.

Install using `pip install ghp-import`

Now run `ghp-import -n -p -f -b BRANCHNAME _build/html`

**NOTE: This is a destructive action. It will overwrite any branch named BRANCHNAME and assume it is 100% derivative**

The -b tag should be followed by the branch which you wish to deploy the html to. By default it is gh-pages. If you're wishing to non-destructively test a local build, push to a separate branch name, and change the branch referenced for the github page in the settings, allowing for a quick revert to the gh-pages branch.

The -n tag indicates building without Jekyll

The -p and -f tags indicate force pushing this branch after committing it.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/Material/GDP Exercises.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/.doctrees/Material/References.doctree
Binary file not shown.
Binary file added _build/.doctrees/README.doctree
Binary file not shown.
Binary file added _build/.doctrees/environment.pickle
Binary file not shown.
Binary file added _build/.doctrees/intro.doctree
Binary file not shown.
Binary file added _build/.doctrees/markdown-notebooks.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b0447c1d44c8bed488ca48d70a7cce9f
tags: 645f666f9bcd5a90fca523b33c5a78b7
536 changes: 536 additions & 0 deletions docs/Material/Dynamic Exercises.html

Large diffs are not rendered by default.

606 changes: 606 additions & 0 deletions docs/Material/Dynamic Exercises/colloc_matrix.html

Large diffs are not rendered by default.

712 changes: 712 additions & 0 deletions docs/Material/Dynamic Exercises/param_est1.html

Large diffs are not rendered by default.

1,006 changes: 1,006 additions & 0 deletions docs/Material/Dynamic Exercises/param_est2.html

Large diffs are not rendered by default.

722 changes: 722 additions & 0 deletions docs/Material/Dynamic Exercises/small_colloc.html

Large diffs are not rendered by default.

680 changes: 680 additions & 0 deletions docs/Material/Dynamic Exercises/small_dae.html

Large diffs are not rendered by default.

677 changes: 677 additions & 0 deletions docs/Material/Dynamic Exercises/small_findiff.html

Large diffs are not rendered by default.

534 changes: 534 additions & 0 deletions docs/Material/GDP Exercises.html

Large diffs are not rendered by default.

682 changes: 682 additions & 0 deletions docs/Material/GDP Exercises/strip_packing.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions docs/Material/Nonlinear Exercises.html

Large diffs are not rendered by default.

664 changes: 664 additions & 0 deletions docs/Material/Nonlinear Exercises/1.1 Alternative Initialization.html

Large diffs are not rendered by default.

873 changes: 873 additions & 0 deletions docs/Material/Nonlinear Exercises/1.2 Evaluation errors.html

Large diffs are not rendered by default.

989 changes: 989 additions & 0 deletions docs/Material/Nonlinear Exercises/1.3 Alternative Formulations.html

Large diffs are not rendered by default.

700 changes: 700 additions & 0 deletions docs/Material/Nonlinear Exercises/1.4 Reactor design problem.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions docs/Material/Pyomo Fundamentals.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions docs/Material/Pyomo Fundamentals/1.1 Knapsack Example.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

638 changes: 638 additions & 0 deletions docs/Material/Pyomo Fundamentals/1.3 Changing data.html

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions docs/Material/Pyomo Fundamentals/1.4 Loading data from Excel.html

Large diffs are not rendered by default.

656 changes: 656 additions & 0 deletions docs/Material/Pyomo Fundamentals/1.5 NLP vs MIP.html

Large diffs are not rendered by default.

627 changes: 627 additions & 0 deletions docs/Material/Pyomo Fundamentals/2.1 Knapsack problem with rules.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions docs/Material/Pyomo Fundamentals/3.2 Changing Parameter values.html

Large diffs are not rendered by default.

655 changes: 655 additions & 0 deletions docs/Material/Pyomo Fundamentals/3.3 Integer cuts.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

534 changes: 534 additions & 0 deletions docs/Material/Pyomo Fundamentals/Exercises 1.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions docs/Material/Pyomo Fundamentals/Exercises 2.html

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions docs/Material/Pyomo Fundamentals/Exercises 3.html

Large diffs are not rendered by default.

525 changes: 525 additions & 0 deletions docs/Material/References.html

Large diffs are not rendered by default.

550 changes: 550 additions & 0 deletions docs/README.html

Large diffs are not rendered by default.

Binary file added docs/_images/000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0000001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/005b82.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/005b821.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00622f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00622f1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0072b2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0072b21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00749c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00749c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/008561.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0085611.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00e0e0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/00e0e01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/023b95.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/023b951.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/024c1a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/024c1a1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0550ae.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0550ae1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/080808.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/0808081.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/116329.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/1163291.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/116633.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/1166331.png
Binary file added docs/_images/141414.png
Binary file added docs/_images/1414141.png
Binary file added docs/_images/18c1c4.png
Binary file added docs/_images/18c1c41.png
Binary file added docs/_images/1e1e1e.png
Binary file added docs/_images/1e1e1e1.png
Binary file added docs/_images/24292f.png
Binary file added docs/_images/24292f1.png
Binary file added docs/_images/3d73a9.png
Binary file added docs/_images/3d73a91.png
Binary file added docs/_images/437a6b.png
Binary file added docs/_images/437a6b1.png
Binary file added docs/_images/515151.png
Binary file added docs/_images/5151511.png
Binary file added docs/_images/5391cf.png
Binary file added docs/_images/5391cf1.png
Binary file added docs/_images/5ca7e4.png
Binary file added docs/_images/5ca7e41.png
Binary file added docs/_images/622cbc.png
Binary file added docs/_images/622cbc1.png
Binary file added docs/_images/66707b.png
Binary file added docs/_images/66707b1.png
Binary file added docs/_images/66ccee.png
Binary file added docs/_images/66ccee1.png
Binary file added docs/_images/66e9ec.png
Binary file added docs/_images/66e9ec1.png
Binary file added docs/_images/6730c5.png
Binary file added docs/_images/6730c51.png
Binary file added docs/_images/6e7781.png
Binary file added docs/_images/6e77811.png
Binary file added docs/_images/6f98b3.png
Binary file added docs/_images/6f98b31.png
Binary file added docs/_images/702c00.png
Binary file added docs/_images/702c001.png
Binary file added docs/_images/72f088.png
Binary file added docs/_images/72f0881.png
Binary file added docs/_images/737373.png
Binary file added docs/_images/7373731.png
Binary file added docs/_images/797979.png
Binary file added docs/_images/7979791.png
Binary file added docs/_images/7998f2.png
Binary file added docs/_images/7998f21.png
Binary file added docs/_images/79c0ff.png
Binary file added docs/_images/79c0ff1.png
Binary file added docs/_images/7ee787.png
Binary file added docs/_images/7ee7871.png
Binary file added docs/_images/7f4707.png
Binary file added docs/_images/7f47071.png
Binary file added docs/_images/8045e5.png
Binary file added docs/_images/8045e51.png
Binary file added docs/_images/81b19b.png
Binary file added docs/_images/81b19b1.png
Binary file added docs/_images/8250df.png
Binary file added docs/_images/8250df1.png
Binary file added docs/_images/8786ac.png
Binary file added docs/_images/8786ac1.png
Binary file added docs/_images/8a4600.png
Binary file added docs/_images/8a46001.png
Binary file added docs/_images/8b949e.png
Binary file added docs/_images/8b949e1.png
Binary file added docs/_images/8c8c8c.png
Binary file added docs/_images/8c8c8c1.png
Binary file added docs/_images/912583.png
Binary file added docs/_images/9125831.png
Binary file added docs/_images/91cbff.png
Binary file added docs/_images/91cbff1.png
Binary file added docs/_images/953800.png
Binary file added docs/_images/9538001.png
Binary file added docs/_images/974eb7.png
Binary file added docs/_images/974eb71.png
Binary file added docs/_images/98661b.png
Binary file added docs/_images/98661b1.png
Binary file added docs/_images/996b00.png
Binary file added docs/_images/996b001.png
Binary file added docs/_images/9e86c8.png
Binary file added docs/_images/9e86c81.png
Binary file added docs/_images/9e8741.png
Binary file added docs/_images/9e87411.png
Binary file added docs/_images/9f4e55.png
Binary file added docs/_images/9f4e551.png
Binary file added docs/_images/a0111f.png
Binary file added docs/_images/a0111f1.png
Binary file added docs/_images/a11y-dark.png
Binary file added docs/_images/a11y-dark1.png
Binary file added docs/_images/a11y-high-contrast-dark.png
Binary file added docs/_images/a11y-high-contrast-dark1.png
Binary file added docs/_images/a11y-high-contrast-light.png
Binary file added docs/_images/a11y-high-contrast-light1.png
Binary file added docs/_images/a11y-light.png
Binary file added docs/_images/a11y-light1.png
Binary file added docs/_images/a12236.png
Binary file added docs/_images/a122361.png
Binary file added docs/_images/a25e53.png
Binary file added docs/_images/a25e531.png
Binary file added docs/_images/a2bffc.png
Binary file added docs/_images/a2bffc1.png
Binary file added docs/_images/a5d6ff.png
Binary file added docs/_images/a5d6ff1.png
Binary file added docs/_images/ab6369.png
Binary file added docs/_images/ab63691.png
Binary file added docs/_images/abe338.png
Binary file added docs/_images/abe3381.png
Binary file added docs/_images/b19db4.png
Binary file added docs/_images/b19db41.png
Binary file added docs/_images/b1bac4.png
Binary file added docs/_images/b1bac41.png
Binary file added docs/_images/b35900.png
Binary file added docs/_images/b359001.png
Binary file added docs/_images/b89784.png
Binary file added docs/_images/b897841.png
Binary file added docs/_images/bbbbbb.png
Binary file added docs/_images/bbbbbb1.png
Binary file added docs/_images/bf5400.png
Binary file added docs/_images/bf54001.png
Binary file added docs/_images/blinds-dark.png
Binary file added docs/_images/blinds-dark1.png
Binary file added docs/_images/blinds-light.png
Binary file added docs/_images/blinds-light1.png
Binary file added docs/_images/c4a2f5.png
Binary file added docs/_images/c4a2f51.png
Binary file added docs/_images/c5e478.png
Binary file added docs/_images/c5e4781.png
Binary file added docs/_images/c9d1d9.png
Binary file added docs/_images/c9d1d91.png
Binary file added docs/_images/caab6d.png
Binary file added docs/_images/caab6d1.png
Binary file added docs/_images/cc398b.png
Binary file added docs/_images/cc398b1.png
Binary file added docs/_images/ccbb44.png
Binary file added docs/_images/ccbb441.png
Binary file added docs/_images/cf222e.png
Binary file added docs/_images/cf222e1.png
Binary file added docs/_images/d166a3.png
Binary file added docs/_images/d166a31.png
Binary file added docs/_images/d2a8ff.png
Binary file added docs/_images/d2a8ff1.png
Binary file added docs/_images/d4d0ab.png
Binary file added docs/_images/d4d0ab1.png
Binary file added docs/_images/d71835.png
Binary file added docs/_images/d718351.png
Binary file added docs/_images/d9dee3.png
Binary file added docs/_images/d9dee31.png
Binary file added docs/_images/dbb7ff.png
Binary file added docs/_images/dbb7ff1.png
Binary file added docs/_images/dcc6e0.png
Binary file added docs/_images/dcc6e01.png
Binary file added docs/_images/ec8e2c.png
Binary file added docs/_images/ec8e2c1.png
Binary file added docs/_images/ee6677.png
Binary file added docs/_images/ee66771.png
Binary file added docs/_images/f26196.png
Binary file added docs/_images/f261961.png
Binary file added docs/_images/f5a394.png
Binary file added docs/_images/f5a3941.png
Binary file added docs/_images/f5ab35.png
Binary file added docs/_images/f5ab351.png
Binary file added docs/_images/f5f5f5.png
Binary file added docs/_images/f5f5f51.png
Binary file added docs/_images/f78c6c.png
Binary file added docs/_images/f78c6c1.png
Binary file added docs/_images/f8f8f2.png
Binary file added docs/_images/f8f8f21.png
Binary file added docs/_images/fad000.png
Binary file added docs/_images/fad0001.png
Binary file added docs/_images/fdac54.png
Binary file added docs/_images/fdac541.png
Binary file added docs/_images/fefeff.png
Binary file added docs/_images/fefeff1.png
Binary file added docs/_images/ff7b72.png
Binary file added docs/_images/ff7b721.png
Binary file added docs/_images/ff9492.png
Binary file added docs/_images/ff94921.png
Binary file added docs/_images/ffa07a.png
Binary file added docs/_images/ffa07a1.png
Binary file added docs/_images/ffa657.png
Binary file added docs/_images/ffa6571.png
Binary file added docs/_images/ffb757.png
Binary file added docs/_images/ffb7571.png
Binary file added docs/_images/ffd700.png
Binary file added docs/_images/ffd7001.png
Binary file added docs/_images/ffd900.png
Binary file added docs/_images/ffd9001.png
Binary file added docs/_images/github-dark-colorblind.png
Binary file added docs/_images/github-dark-colorblind1.png
Binary file added docs/_images/github-dark-high-contrast.png
Binary file added docs/_images/github-dark-high-contrast1.png
Binary file added docs/_images/github-dark.png
Binary file added docs/_images/github-dark1.png
Binary file added docs/_images/github-light-colorblind.png
Binary file added docs/_images/github-light-colorblind1.png
Binary file added docs/_images/github-light-high-contrast.png
Binary file added docs/_images/github-light-high-contrast1.png
Binary file added docs/_images/github-light.png
Binary file added docs/_images/github-light1.png
Binary file added docs/_images/gotthard-dark.png
Binary file added docs/_images/gotthard-dark1.png
Binary file added docs/_images/gotthard-light.png
Binary file added docs/_images/gotthard-light1.png
Binary file added docs/_images/greative.png
Binary file added docs/_images/greative1.png
Binary file added docs/_images/pitaya-smoothie.png
Binary file added docs/_images/pitaya-smoothie1.png
1 change: 1 addition & 0 deletions docs/_sources/Material/Dynamic Exercises.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Dynamic Exercises
80 changes: 80 additions & 0 deletions docs/_sources/Material/Dynamic Exercises/colloc_matrix.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Collocation Matrix"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[\n",
"[np.float64(-9.000001008080126), np.float64(-4.139388773624379), np.float64(1.7393879671602779), np.float64(-3.0000002520200333)],\n",
"[np.float64(10.048810106494384), np.float64(3.2247461916839306), np.float64(-3.567840077120941), np.float64(5.531972415060627)],\n",
"[np.float64(-1.382142403745367), np.float64(1.1678398419022438), np.float64(0.7752546483828548), np.float64(-7.53197233105394)],\n",
"[np.float64(0.33333330533110994), np.float64(-0.25319725996179565), np.float64(1.0531974615778044), np.float64(5.000000168013341)],\n",
"]\n"
]
}
],
"source": [
"import numpy\n",
"\n",
"cp = [0, 0.155051, 0.644949, 1]\n",
"\n",
"a = []\n",
"\n",
"print('[')\n",
"for i in range(len(cp)):\n",
" ptmp = []\n",
" tmp = 0\n",
" for j in range(len(cp)):\n",
" if j != i:\n",
" row = []\n",
" row.insert(0,1/(cp[i]-cp[j]))\n",
" row.insert(1,-cp[j]/(cp[i]-cp[j]))\n",
" ptmp.insert(tmp,row)\n",
" tmp += 1\n",
" p=[1]\n",
" for j in range(len(cp)-1):\n",
" p = numpy.convolve(p,ptmp[j])\n",
" pder = numpy.polyder(p,1)\n",
" arow = []\n",
" for j in range(len(cp)):\n",
" arow.append(numpy.polyval(pder,cp[j]))\n",
" a.append(arow)\n",
" print(str(arow)+',')\n",
"print(']')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading

0 comments on commit 216687d

Please sign in to comment.