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

Do not print model

parent fe26f840
No related branches found
No related tags found
No related merge requests found
module BuildingBlocks
import JuMP: has_values, GenericVariableRef, value, Model, @constraint, @objective, owner_model, objective_function, optimize!, AbstractJuMPScalar
import JuMP: has_values, value, Model, @constraint, @objective, owner_model, objective_function, optimize!, AbstractJuMPScalar
import Printf: @sprintf
import ..Scanners: Scanner
import ..Variables: variables, start_time, duration, end_time, gradient_strength, slew_rate
......@@ -74,7 +74,7 @@ end
function internal_print(io::IO, block::BuildingBlock)
for name in propertynames(block)
value = getproperty(block, name)
if value isa GenericVariableRef || name == :parent || string(name)[1] == '_'
if value isa AbstractJuMPScalar || value isa Model || string(name)[1] == '_'
continue
end
print(io, name, "=", repr(value), ", ")
......
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