Lucas Morton
Lucas Morton
Here's the MWE: ``` using ModelingToolkit, OrdinaryDiffEq @parameters t D = Differential(t) @variables( c3 = 1, c5 =1, ) vars = @variables q(t) eqs = [ D(q) ~ 1, D(c5)...
Guess where the error message happens from in this snippet: ``` using ModelingToolkit @variables t x(t) @parameters a = 1 D = Differential(t) Dx = D(x) eqs = [ Dx...
Copied from [here](https://mtk.sciml.ai/dev/tutorials/optimization/) ``` using ModelingToolkit, Optimization, OptimizationOptimJL @variables x y @parameters a b loss = (a - x)^2 + b * (y - x^2)^2 @named sys = OptimizationSystem(loss,[x,y],[a,b]) u0...
PDE boundary conditions are equations, they need to be validated for unit/dimension correctness. Currently only the dynamical equations are checked.
From https://github.com/SciML/ModelingToolkit.jl/issues/1788#issuecomment-1234612365 Goal is to prevent non-numeric stuff from getting into `build_function`. Something like: ``` struct Equation """The expression on the left-hand side of the equation.""" lhs
Example code [here](http://julianlsolvers.github.io/Optim.jl/v0.9.3/user/minimization/#box-minimization): ``` results = optimize(od, initial_x, lower, upper, Fminbox{GradientDescent}()) ``` Doesn't work. [This comment](https://github.com/JuliaNLSolvers/Optim.jl/issues/621#issuecomment-397836802) notes that the syntax was changed to: ``` result1 = optimize(restmp_a, lower, upper, abc,...
OK, maybe this is pathological, but I was thinking maybe this would be an easy way to add unit conversion within equations in ModelingToolkit: ``` @syms x y z summed...
In order to replace `issymbollike` & solve method ambiguities for AD rules, `SciMLBase` could depend on `Symbolics`. Cf. [this remark.](https://github.com/SciML/SciMLBase.jl/pull/85#issuecomment-883009855) by @sharanry in #85. Currently, we can't do this b/c...