Utilities

The API for simulating models and converting models to simulation objects.

Winston plotting

wplot

Plot the simulation result with Winston (must be installed and loaded).

wplot(sm::SimResult, filename::String, args...)
wplot(sm::SimResult)

Arguments

If filename is not give, plot interactively.

Returns

Sims/src/utils.jl:110

DataFrames and Gadfly

convert(::Type{DataFrame}, x::SimResult)

Convert to a DataFrame.

Base.convert(::Type{DataFrames.DataFrame}, x::SimResult)

Arguments

Returns

Sims/src/utils.jl:149

plot

Plot the simulation result with Gadfly (must be installed and loaded).

plot(sm::SimResult, args...)

Arguments

Returns

Sims/src/utils.jl:175

Miscellaneous

@unknown

A macro to ease entry of many unknowns.

@unknown a1 a2 a3 ...

Arguments

For `symbol(

Effects

Creates one or more Unknowns

Sims/src/utils.jl:221

check

Prints the number of equations and the number of unknowns.

name(x)

Arguments

Returns

Sims/src/utils.jl:260