Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stelmo committed Aug 12, 2024
1 parent 9e61a02 commit a4b9b2f
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 20 deletions.
30 changes: 22 additions & 8 deletions docs/src/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,27 @@
```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_linearvalue.jl"]
Private = false
```

### ParameterQuadraticValue

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_quadraticvalue.jl"]
Private = false
```

### ParameterBound

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_bound.jl"]
Private = false
```

### ParameterIsozyme

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/parameter_isozyme.jl"]
Private = false
```
## Parameterized models

Expand All @@ -41,30 +37,48 @@ Private = false
```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/kinetic_model.jl"]
Private = false
```

### Solving models

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/solver.jl"]
Private = false
```

### Pruning models

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/prune.jl"]
Private = false
```

## Differentiation

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/differentiate.jl"]
Private = false
```

## Internals

### Constraint tree extensions

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/constraint_trees.jl"]
```

### Optimization problem builders

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/get_constraints.jl"]
```

### Symbolics extensions

```@autodocs
Modules = [DifferentiableMetabolism]
Pages = ["src/symbolics.jl"]
```
10 changes: 10 additions & 0 deletions src/differentiate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ See the License for the specific language governing permissions and
limitations under the License.
=#

"""
$(TYPEDSIGNATURES)
TODO
"""
function findall_indeps_qr(A)
#=
Filter out linearly dependent constraints using QR decomposition. Since the
Expand Down Expand Up @@ -174,6 +179,11 @@ end

export differentiate

"""
$(TYPEDSIGNATURES)
TODO
"""
function variable_order(m)
c = []
ff(p, x::ConstraintTrees.ConstraintTree) = nothing
Expand Down
11 changes: 5 additions & 6 deletions src/parameter_bound.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ limitations under the License.
$(TYPEDEF)
Representation of an "interval" bound where the lower and upper bound values are
parameters. Since [`Symbolics.Num`](@ref) is a subtype of `Real`, the bounds
could also be any real number, but they are converted by the constructors to
[`Symbolics.Num`](@ref)s.
parameters. Since `Symbolics.Num` is a subtype of `Real`, the bounds could also
be any real number, but they are converted by the constructors to
`Symbolics.Num`s.
# Fields
$(TYPEDFIELDS)
Expand All @@ -46,9 +46,8 @@ Base.:*(a::Real, b::ParameterBetween) = ParameterBetween(a * b.lower, a * b.uppe
$(TYPEDEF)
Representation of an "equality" bound, where the bound value is a parameter.
Since [`Symbolics.Num`](@ref) is a subtype of `Real`, the bound could also be
any real number, but it is converted by the constructor to a
[`Symbolics.Num`](@ref).
Since `Symbolics.Num` is a subtype of `Real`, the bound could also be any real
number, but it is converted by the constructor to a `Symbolics.Num`.
# Fields
$(TYPEDFIELDS)
Expand Down
8 changes: 5 additions & 3 deletions src/parameter_linearvalue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ Changes from copied code are indicated.
"""
$(TYPEDEF)
An extension of [`ConstraintTrees.LinearValue`](@ref) where the weights are parameters.
An extension of `ConstraintTrees.LinearValue` where the weights are parameters.
`ParameterLinearValue`s can be combined additively and multiplied by real-number constants.
`ParameterLinearValue`s can be combined additively and multiplied by real-number
constants.
Multiplying two `ParameterLinearValue`s yields a quadratic form (in a [`ParameterQuadraticValue`](@ref)).
Multiplying two `ParameterLinearValue`s yields a quadratic form (in a
[`ParameterQuadraticValue`](@ref)).
# Fields
$(TYPEDFIELDS)
Expand Down
4 changes: 2 additions & 2 deletions src/parameter_quadraticvalue.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Changes from copied code are indicated.
"""
$(TYPEDEF)
An extension of [`ConstraintTrees.QuadraticValue`](@ref) where the weights are
An extension of `ConstraintTrees.QuadraticValue` where the weights are
parameters.
Behaves similarly to [`ConstraintTrees.QuadraticValue`](@ref). Thus, the
Behaves similarly to `ConstraintTrees.QuadraticValue`. Thus, the
cleanest way to construct a `ParameterQuadraticValue` is to multiply
two [`ParameterLinearValue`](@ref)s.
Expand Down
2 changes: 1 addition & 1 deletion src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(TYPEDSIGNATURES)
Construct a JuMP model by substituting `parameters` into the model, `m`. Set the
`objective` and the `optimizer`, as well as the `sense` similar to
[`COBREXA.optimization_model`](@ref).
`COBREXA.optimization_model`.
Converts all inequality constraints to the form `A * x ≤ b`.
"""
Expand Down

0 comments on commit a4b9b2f

Please sign in to comment.