# Or-tools not printing results when changing an example

I am trying to put my hands on the example from the page. The example I am trying to reproduce is this one. Code below: """Capacited Vehicles Routing Problem (CVRP).""" from ortools.constraint_solver import routing_enums_pb2 from ortools.constraint_solver import pywrapcp def create_data_model(): """Stores the data for the problem.""" data = {} data[‘distance_matrix’] = [ [ 0, 548,… Read More Or-tools not printing results when changing an example

# Mixing solutions of sympy equation

I’m solving an time depend equation that has the following form (finding the roots for \lambda): import sympy as sp import matplotlib.pyplot as plt t = sp.symbols(r’t’, real=True, positive=True) eq = … print(repr(eq)) -\lambda**3 – 2*\lambda**2*t + 4*\lambda*t**4 – 8*\lambda*t**3 + 8*\lambda*t**2 – 8*\lambda*t + 4*\lambda + 8*t**3 – 16*t**2 + 8*t Solving the equation… Read More Mixing solutions of sympy equation

# Compile issue using Solver

Sub Macro2() ‘ ‘ Macro2 Macro ‘ ‘ Range("G5").Select SolverOk SetCell:="$G$5", MaxMinVal:=2, ValueOf:=0, ByChange:="$G$4", Engine:=1 _ , EngineDesc:="GRG Nonlinear" SolverOk SetCell:="$G$5", MaxMinVal:=2, ValueOf:=0, ByChange:="$G$4", Engine:=1 _ , EngineDesc:="GRG Nonlinear" SolverSolve End Sub I got a message box: "Compile error: Sub or function not defined" I guess the message refers to function or sub SolverOk. Anyone… Read More Compile issue using Solver