Skip to content

Commit

Permalink
[docs] fix printing change in DimensionalData.jl (#3880)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 13, 2024
1 parent 5e4273d commit a9c6d7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CSV = "0.10"
Clarabel = "=0.9.0"
DataFrames = "1"
DifferentiationInterface = "0.6.5"
DimensionalData = "0.29.0"
DimensionalData = "=0.29.1"
Distributions = "0.25"
Documenter = "=1.7.0"
DocumenterCitations = "1"
Expand Down
14 changes: 7 additions & 7 deletions docs/src/extensions/DimensionalData.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ julia> @variable(
x[i = 2:4, j = ["a", "b"]] >= i,
container = DimensionalData.DimArray,
)
╭─────────────────────────────╮
│ 3×2 DimArray{VariableRef,2} │
├─────────────────────────────┴─────────────────── dims ┐
╭─────────────────────────────
│ 3×2 DimArray{VariableRef, 2} │
├──────────────────────────────┴────────────────── dims ┐
↓ i Sampled{Int64} 2:4 ForwardOrdered Regular Points,
→ j Categorical{String} ["a", "b"] ForwardOrdered
└───────────────────────────────────────────────────────┘
Expand Down Expand Up @@ -72,9 +72,9 @@ julia> @expression(
sum(x[At(i), At(j)] for i in 2:4),
container = DimensionalData.DimArray,
)
╭───────────────────────────────╮
│ 2-element DimArray{AffExpr,1} │
├───────────────────────────────┴───────────── dims ┐
╭───────────────────────────────
│ 2-element DimArray{AffExpr, 1} │
├────────────────────────────────┴──────────── dims ┐
↓ j Categorical{String} ["a", "b"] ForwardOrdered
└───────────────────────────────────────────────────┘
"a" x[2,a] + x[3,a] + x[4,a]
Expand All @@ -89,7 +89,7 @@ julia> @constraint(
container = DimensionalData.DimArray,
)
╭──────────────────────────────────────────────────────────────────────────────╮
│ 2-element DimArray{ConstraintRef{Model, MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}}, ScalarShape},1} │
│ 2-element DimArray{ConstraintRef{Model, MathOptInterface.ConstraintIndex{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}}, ScalarShape}, 1} │
├──────────────────────────────────────────────────────────────────────── dims ┤
↓ j Categorical{String} ["a", "b"] ForwardOrdered
└──────────────────────────────────────────────────────────────────────────────┘
Expand Down

0 comments on commit a9c6d7b

Please sign in to comment.