Skip to content

Instantly share code, notes, and snippets.

[TITLE]
[JUNCTIONS]
;ID Elev Demand Pattern
1 18 5 demand ;
2 18 10 demand ;
3 14 0 demand ;
4 12 5 demand ;
5 14 30 demand ;
@this-josh
this-josh / grb.jl
Created June 16, 2022 15:32
Gurobi licence only once
using Gurobi, JuMP
const GRB_ENV[] = Gurobi.Env()
model = Model()
set_optimizer(model, () -> Gurobi.Optimizer(GRB_ENV[]))
Equation 6.29
@this-josh
this-josh / test.json
Created March 21, 2023 08:24
Hover Template
{
"data": [
{
"coloraxis": "coloraxis",
"customdata": [
[
[
0.5805209079366938,
0.4145465488645458,
0.7488916153892086,
@this-josh
this-josh / poetry.lock
Created December 2, 2023 11:35
Full poetry env
# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.
[[package]]
name = "altair"
version = "5.2.0"
description = "Vega-Altair: A declarative statistical visualization library for Python."
optional = false
python-versions = ">=3.8"
files = [
{file = "altair-5.2.0-py3-none-any.whl", hash = "sha256:8c4888ad11db7c39f3f17aa7f4ea985775da389d79ac30a6c22856ab238df399"},
(base)➜ tmp conda create -n guidance python=3.12 -y [13/May/24 | 10:10]
Channels:
- conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /opt/homebrew/Caskroom/mambaforge/base/envs/guidance
{"a":1}