Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4a76e77
Added new files
Gallo9923 Mar 10, 2021
e6890dd
Merge branch 'development' of https://github.com/icesivip/alienfronte…
Gallo9923 Mar 10, 2021
55c3e55
Starting point
Gallo9923 Mar 11, 2021
61ee4ed
Finished TSP Main page
Gallo9923 Mar 24, 2021
a750469
Data upload
Gallo9923 Jun 11, 2021
f11065b
gui started
JuanFernandoMartinez Sep 14, 2021
6530363
trucks table designed
JuanFernandoMartinez Sep 14, 2021
d71f71b
sidebar item added
JuanFernandoMartinez Oct 4, 2021
7c7dbce
half frontend vrp capacitive done
JuanFernandoMartinez Oct 4, 2021
f942030
fine derails advanced
JuanFernandoMartinez Oct 5, 2021
62be277
tutorial added to Nearest Neighbour view
JuanFernandoMartinez Nov 19, 2021
2d4da08
little changes on tsp frontend
JunaiCode Feb 25, 2022
a30110d
problem with responsive table component solved
JuanFernandoMartinez Mar 4, 2022
7a6b8f7
Changes to nodes table
DaniloErazo Mar 11, 2022
670e857
responsive details added to TSP view
JuanFernandoMartinez Mar 18, 2022
4d9471e
Merge branch 'development' of https://github.com/JuanFernandoMartinez…
JuanFernandoMartinez Mar 18, 2022
4a2f3cb
Added some responsive behavior
Dev-Pachon Mar 24, 2022
52e5c7c
New layout added to VRP view
JuanFernandoMartinez Apr 4, 2022
68e56f5
Merge pull request #3 from JuanFernandoMartinez/add-new-layout-to-vrp
JuanFernandoMartinez Apr 4, 2022
53ddb87
simple tutorial carroussel added
JuanFernandoMartinez Apr 5, 2022
5431618
Merge pull request #4 from JuanFernandoMartinez/add-tutorials-to-tsp
JuanFernandoMartinez Apr 5, 2022
df0dd7a
clarke and wright and sweep tutorials added
JuanFernandoMartinez Apr 5, 2022
de4e02a
Merge pull request #5 from JuanFernandoMartinez/add-tutorials-to-tsp
JuanFernandoMartinez Apr 5, 2022
8aa4886
Added responsive behavior to buttons
Dev-Pachon Apr 6, 2022
a565249
Added carousel for tutorials
Dev-Pachon May 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"vis-util": "^4.0.0",
"vue": "^2.6.10",
"vue-axios": "^2.1.5",
"vue-carousel": "^0.18.0",
"vue-chartjs": "^3.4.0",
"vue-cli": "^2.9.6",
"vue-codemirror": "^4.0.6",
Expand Down
Binary file added public/img/Routing/clark/Step1.gif
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 public/img/Routing/clark/Step2.gif
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 public/img/Routing/clark/Step3.gif
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 public/img/Routing/clark/Step4.gif
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 public/img/Routing/sweep/Step1.gif
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 public/img/Routing/sweep/Step2.gif
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 public/img/Routing/sweep/Step3.gif
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 public/img/Routing/tsp/Step1.gif
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 public/img/Routing/tsp/Step2.gif
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 public/img/Routing/tsp/Step3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 14 additions & 13 deletions src/pages/Starter/SampleLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,29 +149,30 @@
}"
><sidebar-item
:link="{
name: $t('Nearest Neighbour'),
path: '/nearest-neighbor'
name: $t('Traveling Salesman Problem'),
path: '/TSP'
}"
></sidebar-item>
<sidebar-item
:link="{
name: $t('Clark and Wright'),
path: '/clark-and-wright'
}"
></sidebar-item>
<sidebar-item
:link="{
name: $t('Opt3Move'),
path: '/opt-3-move'
name: $t('Vehicle Routing Problem'),
path: '/VRP'
}"
></sidebar-item>
</sidebar-item>
<sidebar-item
:link="{
name: $t('Clustering'),
icon: 'tim-icons icon-controller'
}"
>
<sidebar-item
:link="{
name: $t('Sweep'),
path: '/sweep'
name: $t('K-Means'),
path: '/K-Means'
}"
></sidebar-item>
</sidebar-item>
</sidebar-item>
</template>
</side-bar>
<div class="main-panel" :data="sidebarBackground">
Expand Down
4 changes: 4 additions & 0 deletions src/repositories/Modules/Routing/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Routing{
solveClarkAndWright(NodesDTO){
return axios.post(`${this.basePath}/routingModule/solveClarkAndWright`,NodesDTO);
}

solveSweep(NodesDTO){
return axios.post(`${this.basePath}/routingModule/solveSweep`,NodesDTO);
}
}

export default new Routing();
20 changes: 20 additions & 0 deletions src/routes/starterRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import NearestNeighbour from 'src/views/Modules/Routing/NearestNeighbor';
import ClarkeAndWright from 'src/views/Modules/Routing/ClarkeAndWright';
import Opt3Move from 'src/views/Modules/Routing/Opt3Move';
import Sweep from 'src/views/Modules/Routing/Sweep';
import TSP from 'src/views/Modules/Routing/TSPMainPage';

import VRP from 'src/views/Modules/Routing/VRPMainPage';

import KMeans from 'src/views/Modules/Clustering/KMeans';

Vue.use(Router);

Expand Down Expand Up @@ -151,6 +156,21 @@ export default new Router({
name: 'sp',
components: { default: Sweep }
},
{
path: 'K-Means',
name: 'km',
components: {default: KMeans}
},
{
path: 'TSP',
name: 'tsp',
components: {default: TSP}
},
{
path: 'VRP',
name: 'vrp',
components: { default: VRP}
}
]
}
],
Expand Down
39 changes: 39 additions & 0 deletions src/views/Modules/Clustering/KMeans.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<div id="km">
<h1>Hello World!</h1>
<h2> {{ nombre }} </h2>

<input type="button" v-on:click="increment" value="Increment">
<input v-model="nombre" type="text">
<div v-show="cshow" :key="i" v-for="(num, i) in list">ID: {{i}}, Num: {{ num }} </div>


</div>
</template>

<script>
export default {
name: "km",
data(){
return{
nombre: "Esteban",
list: [1, 2 , 3],
currentNumber: 4,
cshow: false
}

},
methods: {
increment(){
this.cshow = true;
this.list.push(this.currentNumber);
this.currentNumber = this.currentNumber + 1;
}
}
}

</script>

<style>

</style>
46 changes: 39 additions & 7 deletions src/views/Modules/Routing/ClarkeAndWright.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
<template>
<div>
<h1>CLARK AND WRIGHT ALGORITHM</h1>

<div>
<button class="btn btn-primary float-start" v-on:click = "changeTuto"> {{tutorial.msg}}</button>
</div>
<div v-if="tutorial.value" class="card my-3 mx-auto p-5 text-center">

<b> <h3> How it works?</h3> </b>
<carousel :navigationEnabled="true" :perPage="1">
<slide :key="'tutorialGif'+ i" v-for="(tutorialGif,i) in tutorial.imgs">
<img v-bind:src="tutorialGif" alt="Something wrong" class="w-75 m-auto">
</slide>
</carousel>

</div>
<card>
<nodes-table :nodes="nodes" @solve="solve"> </nodes-table>
</card>

<card v-show="solveStatus">
<routing-solution :route="route" :routeCost="routeCost"></routing-solution>
</card>
Expand All @@ -15,14 +29,25 @@
import RRepository from './../../../repositories/Modules/Routing/Routing';
import NodesTable from './NodesTable.vue';
import RoutingSolution from './RoutingSolution.vue';
import {Carousel, Slide} from 'vue-carousel';

export default {

name: "ck",

data() {
return {
nodes: [
tutorial:{
value : false,
msg : "What is Clarke And Wright?",
imgs: [
"/img/Routing/clark/Step1.gif",
"/img/Routing/clark/Step2.gif",
"/img/Routing/clark/Step3.gif"

],
},
nodes: [
{
id: 0,
x: 1,
Expand All @@ -44,7 +69,7 @@ export default {
this.solveStatus = true;

var no = {nodes: nodes};

RRepository.solveClarkAndWright(no).then((response) => {
if(response.status < 400){
let r = response.data
Expand All @@ -54,15 +79,22 @@ export default {
}
);

},
changeTuto(){
this.tutorial.value = !this.tutorial.value;
if (this.tutorial.value) this.tutorial.msg = "Hide";
else this.tutorial.msg = "What is Nearest Neighbour?";
}
},
components: {
'nodes-table': NodesTable,
'routing-solution': RoutingSolution
'routing-solution': RoutingSolution,
'carousel':Carousel,
'slide':Slide,
}
}
</script>

<style>

</style>
</style>
13 changes: 13 additions & 0 deletions src/views/Modules/Routing/LoadFileComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>

</template>

<script>
export default {

}
</script>

<style>

</style>
64 changes: 53 additions & 11 deletions src/views/Modules/Routing/NearestNeighbor.vue
Original file line number Diff line number Diff line change
@@ -1,46 +1,81 @@
<template>
<div id="nn">

<h1>NEAREST NEIGHBOR ALGORITHM</h1>

<h1 class="m-auto text-center">NEAREST NEIGHBOR ALGORITHM</h1>




<div>
<button class="btn btn-primary float-start" v-on:click = "changeTuto"> {{tutorial.msg}}</button>
</div>
<div v-if="tutorial.value" class="card my-3 mx-auto p-5 text-center">

<b> <h3> How it works?</h3> </b>
<carousel :navigationEnabled="true" :perPage="1">
<slide :key="'tutorialGif'+ i" v-for="(tutorialGif,i) in tutorial.imgs">
<img v-bind:src="tutorialGif" alt="Something wrong" class="w-75 m-auto">
</slide>
</carousel>

</div>

<card>
<nodes-table :nodes="nodes" @solve="solve"> </nodes-table>
</card>

<card v-show="solveStatus">
<routing-solution :route="route" :routeCost="routeCost"></routing-solution>
</card>

<!-- <pre>
{{$data}}
</pre> -->

</div>
</template>

<script>

import RRepository from './../../../repositories/Modules/Routing/Routing';
import NodesTable from './NodesTable.vue';
import RoutingSolution from './RoutingSolution.vue';
import {Carousel, Slide} from 'vue-carousel';

export default {

name: "nn",

data() {
return {
nodes: [
tutorial:{
value : false,
msg : "What is Nearest Neighbour?",
imgs: [
"/img/Routing/tsp/Step1.gif",
"/img/Routing/tsp/Step2.gif",
"/img/Routing/tsp/Step3.gif"

]
},
nodes: [
{
id: 0,
x: 1,
y: 2,

},
{
id: 1,
x: 3,
y: 4,
}
],
vehicles: [
{
id:1,
c: 10
}
],
route: '',
routeCost: '',
solveStatus: false,
Expand All @@ -51,7 +86,7 @@ export default {
this.solveStatus = true;

var no = {nodes: nodes};

RRepository.solveNearestNeighbours(no).then((response) => {
if(response.status < 400){
let r = response.data
Expand All @@ -61,14 +96,21 @@ export default {
}
);

},
changeTuto(){
this.tutorial.value = !this.tutorial.value;
if (this.tutorial.value) this.tutorial.msg = "Hide";
else this.tutorial.msg = "What is Nearest Neighbour?";
}
},
components: {
'nodes-table': NodesTable,
'routing-solution': RoutingSolution
'routing-solution': RoutingSolution,
'carousel':Carousel,
'slide':Slide,
}
}
</script>

<style>
</style>
</style>
Loading