Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsipher committed Dec 14, 2018
1 parent c469a8c commit cb14fe5
Show file tree
Hide file tree
Showing 54 changed files with 3,345 additions and 34 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.jl.cov
*.jl.*.cov
*.jl.mem

docs/build/
docs/site/
35 changes: 11 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,17 @@ os:
julia:
- 0.6
- nightly
matrix:
allow_failures:
- julia: nightly
notifications:
email: false
git:
depth: 99999999

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - julia: nightly

## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
# packages:
# - gfortran
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi

## uncomment the following lines to override the default test script
#script:
# - julia -e 'Pkg.clone(pwd()); Pkg.build("FlexJuMP"); Pkg.test("FlexJuMP"; coverage=true)'
script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd())'
- julia -e 'Pkg.test("PkgName",coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'cd(Pkg.dir("FlexJuMP")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("FlexJuMP")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e julia -e 'Pkg.add("Documenter")'
- julia -e 'cd(Pkg.dir("PkgName")); include(joinpath("docs", "make.jl"))'
- julia -e 'cd(Pkg.dir("PkgName")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'cd(Pkg.dir("PkgName")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
[![Coverage Status](https://coveralls.io/repos/pulsipher/FlexJuMP.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/pulsipher/FlexJuMP.jl?branch=master)

[![codecov.io](http://codecov.io/github/pulsipher/FlexJuMP.jl/coverage.svg?branch=master)](http://codecov.io/github/pulsipher/FlexJuMP.jl?branch=master)

This package is good.
6 changes: 5 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
julia 0.6
julia 0.6 0.7-
Ipopt
Clp
JuMP 0.15
Distributions
10 changes: 5 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ environment:

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
#matrix:
# allow_failures:
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
# - JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
matrix:
allow_failures:
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe"
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"

branches:
only:
Expand Down Expand Up @@ -44,4 +44,4 @@ build_script:
Pkg.clone(pwd(), \"FlexJuMP\"); Pkg.build(\"FlexJuMP\")"

test_script:
- C:\projects\julia\bin\julia -e "Pkg.test(\"FlexJuMP\")"
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"PkgName\")"
16 changes: 16 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Documenter, FlexJuMP

makedocs(format = :html,
sitename = "FlexJuMP.jl",
pages = ["Home" => "home.md",
"Background" => "background.md",
"User Guide" => "guide.md",
"Examples" => "examples.md",
"Library" => "api.md"])

deploydocs(
repo = "github.com/pulsipher/FlexJuMP.jl.git",
target = "build",
deps = nothing,
make = nothing
)
74 changes: 74 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Library

```@meta
CurrentModule = FlexJuMP
```

## Module

```@docs
FlexJuMP
```

## Functions/Methods

```@docs
FlexibilityModel
@randomvariable
@recoursevariable
getflexibilitydata
setcovariance
getcovariance
setmean
getmean(m::Model)
getmean(variable::RandomVariable)
setuncertaintyset
ismeanfeasible
findcenteredmean
getflexibilityindex
getconfidencelevel
getactiveconstraints
JuMP.getvalue(v::FlexibilityVariable)
rankinequalities
findstochasticflexibility
JuMP.linearindex(v::FlexibilityVariable)
```

## DataTypes

```@docs
FlexibilityVariable
RandomVariable
RecourseVariable
FlexibilityExpr
FlexibilityConstraint
AbstractUncertaintySet
EllipsoidalSet
HyperboxSet
PNormSet
FlexibilityData
```

## Internals

```@docs
getuncertaintyset
solvehook
MakeInputDict
AddSystemExpressions
RandomVariable(m::Model, mean::Number, name::AbstractString)
RecourseVariable(m::Model, name::AbstractString)
Base.show(io::IO, a::FlexibilityExpr)
JuMP.addconstraint(m::Model, constr::FlexibilityConstraint)
JuMP.show(io::IO,c::FlexibilityConstraint)
JuMP.constructconstraint!(flex_aff::FlexibilityExpr, sense::Symbol)
ComputeCenter
```

## Index

```@index
Pages = ["api.md"]
Module = ["FlexJuMP"]
Order = [:function, :type]
```
Loading

0 comments on commit cb14fe5

Please sign in to comment.