File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 271271
272272function mock_optimizer (fail_after:: Int )
273273 return () -> begin
274- model = MOI. Utilities. MockOptimizer (
275- MOI. Utilities. Model {Float64} (),
276- )
274+ model = MOI. Utilities. MockOptimizer (MOI. Utilities. Model {Float64} ())
277275 MOI. Utilities. set_mock_optimize! (
278276 model,
279277 ntuple (i -> _solve_mock, fail_after)... ,
@@ -296,12 +294,7 @@ function test_solve_failures()
296294 x = reshape (x_, m, n)
297295 # MOI.add_constraint.(model, x, MOI.ZeroOne())
298296 MOI. add_constraint .(model, x, MOI. Interval (0.0 , 1.0 ))
299- f = MOI. Utilities. operate (
300- vcat,
301- Float64,
302- sum (p1 .* x),
303- sum (p2 .* x),
304- )
297+ f = MOI. Utilities. operate (vcat, Float64, sum (p1 .* x), sum (p2 .* x))
305298 MOI. set (model, MOI. ObjectiveSense (), MOI. MAX_SENSE)
306299 MOI. set (model, MOI. ObjectiveFunction {typeof(f)} (), f)
307300 for i in 1 : m
You can’t perform that action at this time.
0 commit comments