Exemplo n.º 1
0
def _getEnergy(xVecParam):

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

  valToRet = f1 + f2
  #print "**********", valToRet
  return  valToRet
Exemplo n.º 2
0
def test_c_checkoscyzaka2_obj2():
    vecToTest = [-5.5, 2, 3, 3, 1, -1.9]
    assert False==checker.checkVariableBounds(vecToTest)
    assert False==checker.checkConstraints(vecToTest)   
    assert True==math.isnan(oscyzaka2._secondObj(vecToTest))
Exemplo n.º 3
0
def test_a_checkoscyzaka2_obj2():
    vecToTest = [1, 2, 3, 3, 3, 9]
    assert True==checker.checkVariableBounds(vecToTest)
    assert True==checker.checkConstraints(vecToTest)   
    assert 113==oscyzaka2._secondObj(vecToTest)