diff --git a/src/instances/fio/dimacs.rs b/src/instances/fio/dimacs.rs index 32320dda..4a887375 100644 --- a/src/instances/fio/dimacs.rs +++ b/src/instances/fio/dimacs.rs @@ -71,9 +71,9 @@ where VM: ManageVars + Default, { let reader = BufReader::new(reader); - let (constrs, objs) = parse_dimacs(reader)?; + let (constrs, mut objs) = parse_dimacs(reader)?; if objs.is_empty() { - return Err(Error::InvalidInstanceType); + objs.push(Objective::default()); } else if obj_idx >= objs.len() { return Err(Error::ObjNoExist(objs.len())); }