Open guanghuidatafuelx opened 1 year ago
Hi, thanks for opening the issue. A few questions:
Hi @Wikunia
Thanks for your prompt reply.
Guanghui
Seems like it's hard to find a feasible solution though so the feasibility pump would be nice if it works to have a starting solution. It seems a bit strange on first sight that the best bound stays constant though I haven't looked at your model. Do you have maybe smaller problems of the same kind to test on?
Can you pass me the syntax to save the model in Julia/JuMP to a mathoptformat file?
write_to_file(model, "model.mof.json")
@odow Hi Oscar: Your line of code works. Please see the attached json file. model.mof.json.txt
@Wikunia Hi Ole: I tried to disable feasibility pump with GLPK as the mip solver.
set_optimizer_attribute(model, "feasibility_pump", false)
and also tried to increase feasibility pump time from default 60 seconds to 120 seconds.
set_optimizer_attribute(model, "feasibility_pump_time_limit", 120)
Both didn't solve the problem. HiGHS as mip solvers works for this feasibility problem. But if I add the linear or nonlinear objective function back, it fails.
I reduced to smaller size problems, Juniper didn't show this type of issues.
I am using Juniper in Julia/JuMP to solve a feasibility problem, whose constraints are linear. The FP iterations seem to be going on forever, having the difficulty in convergence. I am looking for help for a way to get the best feasible solution out of it.
My setting is below.
using Juniper
optimizer = Juniper.Optimizer
nl_solver= optimizer_with_attributes(Ipopt.Optimizer,"print_level" => 0) mip_solver = optimizer_with_attributes(GLPK.Optimizer)
model = Model(optimizer_with_attributes( optimizer, "nl_solver"=>nl_solver, "mip_solver"=>mip_solver))
set_optimizer_attribute(model, "mip_gap", 0.0001)
set_time_limit_sec(model, 200)
set_optimizer_attribute(model, "branch_strategy", :StrongPseudoCost)
set_optimizer_attribute(model, "traverse_strategy", :DFS)
optimize!(model)
The .nl file is here Juniper_problem1.nl.txt
The .lp file is here
Juniper_model1.lp.txt