Oscar Dowson
Oscar Dowson
We've added a few missing functions like `atan`, `min`, and `max`. But I'm not sure we want to add `signpower` etc. The main reason is that AMPL doesn't support them,...
For `signpower`, the [Pyomo models](https://www.minlplib.org/py/gastransnlp.py) use `signpower(x, p) = x * abs(x)**(p - 1)`. That avoids needing to register `sign` as a user-defined function. The other option is `signpower(x, p)...
Oh. I guess I forgot `ifelse` eagerly evaluates both arguments. This is a Julia problem, not an AMPL problem: ```julia julia> using JuMP, AmplNLWriter, Ipopt_jll julia> p = 1.5 1.5...
This `ifelse` domain errors are fixed here: https://github.com/jump-dev/MathOptInterface.jl/pull/2050
> Signpower isn't as important as few other functions Like what?
Talked to @ccoffrin: we're in favor of closing this. A good rule for adding support is "is it supported both by Base Julia _and_ AMPL's ASL?"
Julia 1.9 has an upcoming "weakdeps" feature that should support functionality like this. It'll allow you to write code that gets loaded only if two packages are installed. Closing because...
Closing this as won't fix. If it comes up again, we can revisit. It's a shame HiGHS has a global scheduler, but it isn't safe for us to muck around...
Closing because `silent = true` is the correct solution.
PATHSolver.jl doesn't support M1, and this is unlikely to change until Prof. Ferris updates PATH to M1. Use Rosetta instead.