@@ -33,8 +33,7 @@ func TestSolution_ToMessage1(t *testing.T) {
3333 0 : 2.1 ,
3434 1 : 3.14 ,
3535 },
36- Objective : 2.3 ,
37- Status : solution_status .NODE_LIMIT ,
36+ Status : solution_status .NODE_LIMIT ,
3837 }
3938
4039 // Test the ToMessage() Call on this solution.
@@ -114,8 +113,7 @@ func TestSolution_Value1(t *testing.T) {
114113 v1 .ID : 2.1 ,
115114 v2 .ID : 3.14 ,
116115 },
117- Objective : 2.3 ,
118- Status : solution_status .NODE_LIMIT ,
116+ Status : solution_status .NODE_LIMIT ,
119117 }
120118
121119 // Algorithm
@@ -162,8 +160,7 @@ func TestSolution_FindValueOfExpression1(t *testing.T) {
162160 v1 .ID : 2.0 ,
163161 v2 .ID : 3.0 ,
164162 },
165- Objective : 2.3 ,
166- Status : solution_status .OPTIMAL ,
163+ Status : solution_status .OPTIMAL ,
167164 }
168165
169166 // Create expression: 2*v1 + 3*v2 = 2*2.0 + 3*3.0 = 4.0 + 9.0 = 13.0
@@ -196,9 +193,9 @@ Description:
196193func TestSolution_FindValueOfExpression2 (t * testing.T ) {
197194 // Constants
198195 tempSol := solution.DummySolution {
199- Values : map [uint64 ]float64 {},
200- Objective : 2.3 ,
201- Status : solution_status .OPTIMAL ,
196+ Values : map [uint64 ]float64 {},
197+
198+ Status : solution_status .OPTIMAL ,
202199 }
203200
204201 // Create constant expression: 42.0
@@ -236,8 +233,8 @@ func TestSolution_FindValueOfExpression3(t *testing.T) {
236233 Values : map [uint64 ]float64 {
237234 v1 .ID : 5.5 ,
238235 },
239- Objective : 2.3 ,
240- Status : solution_status .OPTIMAL ,
236+
237+ Status : solution_status .OPTIMAL ,
241238 }
242239
243240 // Create expression: v1 + 10 = 5.5 + 10 = 15.5
@@ -278,8 +275,8 @@ func TestSolution_FindValueOfExpression4(t *testing.T) {
278275 v1 .ID : 2.0 ,
279276 // v2 is missing
280277 },
281- Objective : 2.3 ,
282- Status : solution_status .OPTIMAL ,
278+
279+ Status : solution_status .OPTIMAL ,
283280 }
284281
285282 // Create expression: v1 + v2
@@ -311,8 +308,8 @@ func TestSolution_FindValueOfExpression5(t *testing.T) {
311308 v2 .ID : 2.0 ,
312309 v3 .ID : 3.0 ,
313310 },
314- Objective : 2.3 ,
315- Status : solution_status .OPTIMAL ,
311+
312+ Status : solution_status .OPTIMAL ,
316313 }
317314
318315 // Create expression: (v1 + v2) * v3 + 5 = (1.0 + 2.0) * 3.0 + 5 = 3.0 * 3.0 + 5 = 9.0 + 5 = 14.0
@@ -351,9 +348,9 @@ func TestSolution_GetProblem1(t *testing.T) {
351348 Values : map [uint64 ]float64 {
352349 v1 .ID : 2.1 ,
353350 },
354- Objective : 2.3 ,
355- Status : solution_status .OPTIMAL ,
356- Problem : p ,
351+
352+ Status : solution_status .OPTIMAL ,
353+ Problem : p ,
357354 }
358355
359356 // Algorithm
@@ -381,9 +378,9 @@ func TestSolution_GetProblem2(t *testing.T) {
381378 Values : map [uint64 ]float64 {
382379 0 : 2.1 ,
383380 },
384- Objective : 2.3 ,
385- Status : solution_status .OPTIMAL ,
386- Problem : nil ,
381+
382+ Status : solution_status .OPTIMAL ,
383+ Problem : nil ,
387384 }
388385
389386 // Algorithm
@@ -422,9 +419,8 @@ func TestSolution_GetOptimalObjectiveValue1(t *testing.T) {
422419 v1 .ID : 2.0 ,
423420 v2 .ID : 3.0 ,
424421 },
425- Objective : 13.0 ,
426- Status : solution_status .OPTIMAL ,
427- Problem : p ,
422+ Status : solution_status .OPTIMAL ,
423+ Problem : p ,
428424 }
429425
430426 // Algorithm
@@ -458,9 +454,9 @@ func TestSolution_GetOptimalObjectiveValue2(t *testing.T) {
458454 Values : map [uint64 ]float64 {
459455 v1 .ID : 2.0 ,
460456 },
461- Objective : 2.3 ,
462- Status : solution_status .OPTIMAL ,
463- Problem : nil ,
457+
458+ Status : solution_status .OPTIMAL ,
459+ Problem : nil ,
464460 }
465461
466462 // Algorithm
@@ -494,9 +490,8 @@ func TestSolution_GetOptimalObjectiveValue3(t *testing.T) {
494490 Values : map [uint64 ]float64 {
495491 v1 .ID : 1.0 ,
496492 },
497- Objective : 42.0 ,
498- Status : solution_status .OPTIMAL ,
499- Problem : p ,
493+ Status : solution_status .OPTIMAL ,
494+ Problem : p ,
500495 }
501496
502497 // Algorithm
@@ -544,9 +539,8 @@ func TestSolution_GetOptimalObjectiveValue4(t *testing.T) {
544539 v2 .ID : 2.0 ,
545540 v3 .ID : 3.0 ,
546541 },
547- Objective : 14.0 ,
548- Status : solution_status .OPTIMAL ,
549- Problem : p ,
542+ Status : solution_status .OPTIMAL ,
543+ Problem : p ,
550544 }
551545
552546 // Algorithm
0 commit comments