Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Java API - how can I feed a feasible solution into a MIP

    Posted 11/09/09 08:06 PM

    Originally posted by: SystemAdmin


    [tafazzoli said:]

    Hello,

    I have difficulty figuring out how I can save a feasible solution in an initial run of a MIP and then feed it back into MIP in a future run. I am trying to do this in Java concert technology.

    I would greatly appreciate your help.
    Thanks,
    A-
    #DecisionOptimization
    #MathematicalProgramming-General


  • 2.  Re: Java API - how can I feed a feasible solution into a MIP

    Posted 11/10/09 11:08 AM

    Originally posted by: SystemAdmin


    [DanielJunglas said:]

    You can query the solution of the initial run using IloCplex.getValues()
    and feed that back as starting solution to the future run using IloCplex.addMIPStart().
    Another possibility is IloCplex.setVectors().
    Or do you want to inject the solution to the future run [i]during[/i] the solve?
    #DecisionOptimization
    #MathematicalProgramming-General


  • 3.  Re: Java API - how can I feed a feasible solution into a MIP

    Posted 11/11/09 06:28 PM

    Originally posted by: SystemAdmin


    [tafazzoli said:]

    Thanks Daneil. I took another approach.

    I am using
    model.writeMIPStart("file.txt");
    to write the solution in an output file and then read it in the next iteration using
    model.readMIPStart("file.txt");
    #DecisionOptimization
    #MathematicalProgramming-General