Skip to content
Snippets Groups Projects
Verified Commit 94bd4552 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Explicitly compute qval

parent 9bc1e84c
No related branches found
No related tags found
No related merge requests found
module Variables
import JuMP: @variable, Model, @objective, objective_function, owner_model, has_values, value, AbstractJuMPScalar
import LinearAlgebra: norm
import ..Scanners: gradient_strength, slew_rate
all_variables_symbols = [
......@@ -54,7 +53,10 @@ variables() = [values(symbol_to_func)...]
# Some universal truths
qval(bb) = norm(qvec(bb))
function qval(bb)
vec = qvec(bb)
return sqrt(vec[1]^2 + vec[2]^2 + vec[3]^2)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment