Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  unit test

    Posted 12/13/11 02:41 PM

    Originally posted by: yek_ti1


    Hi,

    I was wondering how i could make some unit tests inside a framework
    like cppunit using ILOG CP. It doesn't seem obvious to me since
    the mechanism of solving depends about goals.
    Are there any ideas how to proceed ? How do you do testing ?
    Actually, maybe there is no other choice than having a know solution
    and test there is no regression from a version to another one ?

    Thank you for your advice.
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: unit test

    Posted 12/15/11 03:49 AM

    Originally posted by: ol


    Hello,
    I am not sure I fully understand your problem. If you need to test your classes, you can proceed as usual, CP Optimizer as a linked library should not be a problem.

    If the method you want to test is the solving of a constraint problem with only one solution, then I would answer yes to your third question. Note that when several solutions exist and the search strategy is not determistic, the test may be not so simple, and depends on what you want to test.

    If you want to test a function that uses more primitive features of CP Optimizer, your own IlcGoal for example, you need to build a test case, defining the context of the test, but I do not see anything specific to CP Optimizer.

    Hope it helps
    Olivier
    #CPOptimizer
    #DecisionOptimization