Skip to content
Extraits de code Groupes Projets
Valider 097b636c rédigé par François LEFOULON's avatar François LEFOULON
Parcourir les fichiers

README presque done

parent db256d57
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# TSPNotTheSchool # STSP using the Held and Karp algorithm
Julia module for the TSP using the Held and Kard relaxation Julia module for the Symmetric Travelling Salesman Problem using the Held and Kard relaxation.
\ No newline at end of file
Our project is presented in the from of a Julia Jupyter notebook.
# Requirements
# Viewing the project
## General presentation of notebooks
Notebooks are a user-friendly way of mixing code with printed results and markdown/latex writing.
A notebook is cut in blocks containing either code, printed results or markdown/latex. Each block can be run separately, and all the functions/variables declared in it are stored in the current session.
It is important to note than blocks need preferably be executed from the top down, because the varaibles and function calls used in a block might depend on previous blocks.
![Preview of our notebook](images/nb.png)
## Visualizing our notebook
The simplest way is to go to the [nbviewer](https://nbviewer.jupyter.org/) website and type `https://signolle.iiens.net/files/heldAndKarp.ipynb`
in the search bar.
![Screenshot of nbviewer ](images/nbviewer.png)
Alternatively, you can open the notebook in a notebook editor. For information about installing such an editor, you can go to either the [Jupyter installation page](https://jupyter.org/install) or the [Pluto installation page](https://plutojl.org/#lets-do-it). Note that in order to run the blocks in the notebook rather than just seeing them, you will need to [download and install Julia > 1.4.2](https://julialang.org/downloads/).
## Converting to a classic julia script
If you just want to see/run the code without the printing and block structure, you might want to [install nbconvert](https://nbconvert.readthedocs.io/en/latest/install.html) and run in a shell terminal the following command :
```
jupyter nbconvert --to script heldAndKarp.ipynb
```
\ No newline at end of file
images/nb.png

61,1 ko

images/nbviewer.png

46,4 ko

0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter