File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import MathOptInterface
8
8
const MOI = MathOptInterface
9
9
10
10
MOI. Utilities. @model (Model,
11
- (MOI . Integer, ),
11
+ (),
12
12
(),
13
13
(MOI. Nonnegatives, MOI. PositiveSemidefiniteConeTriangle),
14
14
(),
@@ -319,7 +319,7 @@ function Base.read!(io::IO, model::Model{T}) where T
319
319
obj = zero (MOI. ScalarAffineFunction{T})
320
320
for i in eachindex (c)
321
321
if ! iszero (c[i])
322
- push! (obj. terms, MOI. ScalarAffineTerm (c[i], MOI . VariableIndex (i) ))
322
+ push! (obj. terms, MOI. ScalarAffineTerm (c[i], scalar_vars[i] ))
323
323
end
324
324
end
325
325
MOI. set (model, MOI. ObjectiveFunction {typeof(obj)} (), obj)
@@ -351,7 +351,7 @@ function Base.read!(io::IO, model::Model{T}) where T
351
351
else
352
352
if ! iszero (coef)
353
353
push! (funcs[block]. terms, MOI. VectorAffineTerm (k,
354
- MOI. ScalarAffineTerm (coef, MOI . VariableIndex ( matrix) )))
354
+ MOI. ScalarAffineTerm (coef, scalar_vars[ matrix] )))
355
355
end
356
356
end
357
357
end
You can’t perform that action at this time.
0 commit comments