Skip to content

Instantly share code, notes, and snippets.

Avatar

Antonio Cañada Momblant tonicanada

View GitHub Profile
@tonicanada
tonicanada / bank_conversion.py
Last active April 5, 2023 02:58
Ejemplo de uso de la librería pip `conversor_nominas_bancos_chile`
View bank_conversion.py
from conversor_nominas_bancos_chile import bank_functions
import pkg_resources
import json
from pathlib import Path
import pandas as pd
# _________________________________________________________________________________________________________
View tsp_medium_article_ortools.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Google.OrTools.ConstraintSolver;
namespace TspCadPlugin
{
public static class OrToolsTSP
View tsp_medium_article_approx_christofides.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TspCadPlugin
{
public static class AproxChristofides
{
View tsp_medium_article_approx_2t.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TspCadPlugin
{
public static class AproxDoubleTree
{
View tsp_medium_article_optimal_dp_part3.cs
using System;
using System.Collections.Generic;
namespace TspCadPlugin
{
public static class OptimalTspDynProg
{
/// <summary>
/// Function that computes the optimal TSP solution using Dynamic Programming.
/// </summary>
View tsp_medium_article_optimal_dp_part2.cs
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
public static double[,] distMatrix =
{
{0, 13, 17, 23},
View tsp_medium_article_optimal_dp_part1.cs
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
public static double[,] distMatrix =
{
{0, 13, 17, 23},
View tsp_medium_article_optimal_ilp.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Google.OrTools.LinearSolver;
namespace TspCadPlugin
{
public static class OptimalTspIlp
{
/// <summary>
View linearprogramming_maxflownetwork_ortools.cs
using System;
using Google.OrTools.LinearSolver;
// Max-flow algorithm example
// Capacities Graph Network (first row should correspond to S, last to T)
int[,] capacitiesGraph = new int[6, 6]
{
View maxflowproblem_ford_fulkerson.js
// Ford-Fulkerson algorithm implementation to solve Max Network Flow
// capacitiesGraph graph network
// https://graphonline.ru/en/?graph=lfhEQWkIEqiJCKvH
const capacitiesGraph = [
[0, 18, 0, 15, 0, 0],
[0, 0, 9, 2, 10, 0],
[0, 0, 0, 0, 0, 13],
[0, 0, 0, 0, 3, 0],