Example #1
0
def _getEnergy(xVecParam):

  f1 = _firstObj(xVecParam)
  f2 = _secondObj(xVecParam)

  valToRet = f1 + f2
  #print "**********", valToRet
  return  valToRet
Example #2
0
def test_c_checkoscyzaka2_obj1():
    vecToTest = [1.0, 2.0, 3.0, 3.0, 3.0, 9.0]
    assert True==checker.checkVariableBounds(vecToTest)
    assert True==checker.checkConstraints(vecToTest)   
    assert -33==oscyzaka2._firstObj(vecToTest)          
Example #3
0
def test_b_checkoscyzaka2_obj1():
    vecToTest = [0, 2, 3, 3, 1, 9]
    assert True==checker.checkVariableBounds(vecToTest)
    assert False==checker.checkConstraints(vecToTest)   
    assert True==math.isnan(oscyzaka2._firstObj(vecToTest))         
Example #4
0
def test_a_checkoscyzaka2_obj1():
    vecToTest = [1, 2, 3, 3, 3, 9]
    assert True==checker.checkVariableBounds(vecToTest)
    assert True==checker.checkConstraints(vecToTest)   
    assert -33==oscyzaka2._firstObj(vecToTest)