(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| from __future__ import division | |
| import numpy as np | |
| from scipy.optimize import brentq as root | |
| from borg import * | |
| nvars = 100 # decision variables: pollution for each timestep | |
| nobjs = 4 | |
| nconstr = 1 | |
| nsamples = 100 # 100 scenarios of natural inflows | |
| b = 0.42 # decay rate for P in lake (0.42 = irreversible) |
| # ipak function: install and load multiple R packages. | |
| # check to see if packages are installed. Install them if they are not, then load them into the R session. | |
| ipak <- function(pkg){ | |
| new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
| if (length(new.pkg)) | |
| install.packages(new.pkg, dependencies = TRUE) | |
| sapply(pkg, require, character.only = TRUE) | |
| } |