Skip to content

Commit

Permalink
Update docs and their template
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartinsanta committed Oct 9, 2024
1 parent dedf8e5 commit d473c1d
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 126 deletions.
1 change: 1 addition & 0 deletions docs/examples/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Step-by-step examples
322 changes: 205 additions & 117 deletions docs/examples/TSP.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package es.urjc.etsii.grafo.TSP.experiments;

import es.urjc.etsii.grafo.TSP.algorithms.constructives.TSPRandomConstructive;
import es.urjc.etsii.grafo.TSP.algorithms.neighborhood.InsertNeighborhood;
import es.urjc.etsii.grafo.TSP.algorithms.neighborhood.SwapNeighborhood;
import es.urjc.etsii.grafo.TSP.model.neighs.InsertNeighborhood;
import es.urjc.etsii.grafo.TSP.model.neighs.SwapNeighborhood;
import es.urjc.etsii.grafo.TSP.model.TSPInstance;
import es.urjc.etsii.grafo.TSP.model.TSPSolution;
import es.urjc.etsii.grafo.algorithms.Algorithm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package es.urjc.etsii.grafo.TSP.experiments;

import es.urjc.etsii.grafo.TSP.algorithms.constructives.TSPRandomConstructive;
import es.urjc.etsii.grafo.TSP.algorithms.neighborhood.InsertNeighborhood;
import es.urjc.etsii.grafo.TSP.algorithms.neighborhood.SwapNeighborhood;
import es.urjc.etsii.grafo.TSP.model.neighs.InsertNeighborhood;
import es.urjc.etsii.grafo.TSP.model.neighs.SwapNeighborhood;
import es.urjc.etsii.grafo.TSP.model.TSPInstance;
import es.urjc.etsii.grafo.TSP.model.TSPSolution;
import es.urjc.etsii.grafo.algorithms.Algorithm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.urjc.etsii.grafo.TSP.algorithms.neighborhood;
package es.urjc.etsii.grafo.TSP.model.neighs;

import es.urjc.etsii.grafo.TSP.model.TSPBaseMove;
import es.urjc.etsii.grafo.TSP.model.TSPInstance;
Expand Down Expand Up @@ -40,7 +40,7 @@ public InsertMove(TSPSolution solution, int pi, int pj) {
super(solution);
this.pi = pi;
this.pj = pj;
this.distanceDelta = calculateValue(solution);
this.distanceDelta = insertDelta(solution);
}

@Override
Expand All @@ -49,7 +49,7 @@ protected TSPSolution _execute(TSPSolution solution) {
return solution;
}

private double calculateValue(TSPSolution solution){
private double insertDelta(TSPSolution solution){
var s = solution.cloneSolution();
s.insertLocationAtPiInPj(pi, pj);
return s.getDistance() - solution.getDistance();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package es.urjc.etsii.grafo.TSP.algorithms.neighborhood;
package es.urjc.etsii.grafo.TSP.model.neighs;

import es.urjc.etsii.grafo.TSP.model.TSPBaseMove;
import es.urjc.etsii.grafo.TSP.model.TSPInstance;
Expand Down
1 change: 1 addition & 0 deletions mkdocs-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mkdocs-mermaid2-plugin
Pygments
mkdocs-awesome-pages-plugin
mkdocs-material
6 changes: 5 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
site_name: "Mork Developers Guide"
theme:
name: "readthedocs"
name: "material"
features:
- content.code.select
- content.code.annotate
Expand All @@ -14,6 +15,9 @@ markdown_extensions:
- pymdownx.details
- pymdownx.superfences
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- md_in_html
- pymdownx.arithmatex:
generic: true
Expand Down

0 comments on commit d473c1d

Please sign in to comment.