@@ -7,6 +7,7 @@ module MultiObjectiveAlgorithms
77
88import Combinatorics
99import MathOptInterface as MOI
10+ import Printf
1011
1112"""
1213 struct SolutionPoint
@@ -648,8 +649,6 @@ function MOI.delete(model::Optimizer, ci::MOI.ConstraintIndex)
648649 return
649650end
650651
651- import Printf
652-
653652"""
654653 optimize_inner!(model::Optimizer)
655654
@@ -689,7 +688,7 @@ Log the solution. We have a pre-computed point.
689688"""
690689function _log_solution (model:: Optimizer , Y)
691690 if ! model. silent
692- print (_format (model. subproblem_count))
691+ print (_format (model. subproblem_count), " " )
693692 for y in Y
694693 print (" " , _format (y))
695694 end
@@ -704,8 +703,8 @@ Log the solution. Assume the subproblem failed to solve.
704703"""
705704function _log_solution (model:: Optimizer , msg:: String )
706705 if ! model. silent
707- print (_format (model. subproblem_count), " " )
708- print (rpad (msg, 13 * MOI. output_dimension (model. f) - 3 ))
706+ print (_format (model. subproblem_count), " " )
707+ print (rpad (msg, 13 * MOI. output_dimension (model. f)))
709708 println (" " , _format (time () - model. start_time))
710709 end
711710 return
@@ -834,11 +833,18 @@ function _optimize!(model::Optimizer)
834833 return
835834 end
836835 if ! model. silent
837- print (" Iter." )
836+ rule = " -" ^ (7 + 13 * (MOI. output_dimension (model. f) + 1 ))
837+ println (rule)
838+ println (" MultiObjectiveAlgorithms.jl" )
839+ println (rule)
840+ println (" Algorithm: " , _describe (model. algorithm))
841+ println (rule)
842+ print (" solve #" )
838843 for i in 1 : MOI. output_dimension (model. f)
839844 print (lpad (" Obj. $i " , 13 ))
840845 end
841846 println (" Time " )
847+ println (rule)
842848 end
843849 # We need to clear the ideal point prior to starting the solve. Algorithms
844850 # may update this during the solve, otherwise we will update it at the end.
@@ -851,7 +857,10 @@ function _optimize!(model::Optimizer)
851857 _sort! (model. solutions, MOI. get (model, MOI. ObjectiveSense ()))
852858 end
853859 if ! model. silent
854- println (" Found $(length (model. solutions)) solutions" )
860+ println (rule)
861+ println (" Terminating with status: " , status)
862+ println (" Number of non-dominated solutions: " , length (model. solutions))
863+ println (rule)
855864 end
856865 if MOI. get (model, ComputeIdealPoint ())
857866 _compute_ideal_point (model)
0 commit comments