Skip to content

Instantly share code, notes, and snippets.

Changhyun Kwon chkwon

Block or report user

Report or block chkwon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View The Transportation Problem.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chkwon
chkwon / shadow_price.jl
Last active Oct 18, 2019
Shadow Price for LP problems in Julia
View shadow_price.jl
using JuMP, GLPK
m = Model(with_optimizer(GLPK.Optimizer))
@variable(m, x1 >= 0)
@variable(m, x2 >= 0)
@objective(m, Max, 3x1 + 5x2)
@constraint(m, c1, x1 <= 4)
@constraint(m, c2, 2x2 <= 12)
@constraint(m, c3, 3x1 + 2x2 <= 18)
optimize!(m)
View linespacing11pt.tex
\documentclass[11pt]{article}
\usepackage{layouts}
\begin{document}
default baselineskip: \the\baselineskip
\drawfontframelabel{ g x N h }
\drawfontframelabel{ g x N h ( ) }
@chkwon
chkwon / e2293e769a19cf7cc131560e7d30a493cf399b8a.svg
Created Oct 18, 2016
e2293e769a19cf7cc131560e7d30a493cf399b8a.svg
View e2293e769a19cf7cc131560e7d30a493cf399b8a.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chkwon
chkwon / jump_cplex.jl
Created Mar 21, 2015
Simple CPLEX Test
View jump_cplex.jl
using JuMP, CPLEX
m = Model(solver=CplexSolver())
@defVar(m, x <= 5)
@defVar(m, y <= 45)
@setObjective(m, Min, x + y)
@addConstraint(m, 50x + 24y <= 2400)
@addConstraint(m, 30x + 33y <= 2100)
status = solve(m)
println("Optimal objective: ",getObjectiveValue(m))
@chkwon
chkwon / jump_gurobi.jl
Created Mar 21, 2015
Simple Gurobi Test
View jump_gurobi.jl
using JuMP, Gurobi
m = Model(solver=GurobiSolver())
@defVar(m, x <= 5)
@defVar(m, y >= 45)
@setObjective(m, Min, x + y)
@addConstraint(m, 50x + 24y <= 2400)
@addConstraint(m, 30x + 33y <= 2100)
status = solve(m)
println("Optimal objective: ", getObjectiveValue(m))
@chkwon
chkwon / myxhtml.cfg
Last active Aug 29, 2015
LaTeX to html conversation setting file for htlatex (htlatex filename.tex myxhtml)
View myxhtml.cfg
\Preamble{xhtml}
\Configure{$}{\PicMath}{\EndPicMath}{}
\Configure{PicMath}{}{}{}{class=’’math’’; align=’’absmiddle’’}
\Configure{graphics*}
{pdf}
{\Needs{"convert \csname Gin@base\endcsname.pdf
\csname Gin@base\endcsname.png"}%
\Picture[pict]{\csname Gin@base\endcsname.png}%
\special{t4ht+@File: \csname Gin@base\endcsname.png}
}
@chkwon
chkwon / latex-quick-start.tex
Created Oct 31, 2014
A quick start for LaTeX beginners
View latex-quick-start.tex
\documentclass[letterpaper, 11pt]{article}
\usepackage{amsmath}
\title{This is the title of this document.}
\author{Changhyun Kwon}
\date{October 31, 2014}
\begin{document}
You can’t perform that action at this time.