Unanswered Level of Repair

  • Friday, October 21, 2011 3:03 PM
     
     

    I'm just getting started with Solver Foundation and could use a nudge int the right direction. I'm an experienced programmer.

    Our problem is Level Of Repair. For a given collection of parts, where do parts get repaired based on cost and availability. Minimize cost maximize availability.

    I've looked through the examples but was wondering if anyone could fill in the blanks here for a deicision where to repair a single item,ignoring availability for now. I'm trying to model levelOne with a cost of 5000 and levelTwo with a cost of 6000 and have the solver choose which one is cheaper.

    Decision levelOne = new Decision(Domain.RealRange(5000,5000), "levelOne");

    Decision levelTwo = new Decition(Domain.RealRange(6000,6000), "levelTwo");

    model.AddDecisions(levelOne,LevelTwo);

    model.AddGoal("goal", GoalKind.Minimize, ??);

    Is the Domain.RealRange where I am going wrong? Do I need to be using Domain.Set instead to define the possibilities?

     

    Thanks

     

     

All Replies

  • Friday, October 21, 2011 9:24 PM
     
     

    This approach is not going to work. You first need to write down a mathematical model before you start to do some coding.

    Erwin