Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Oploutputfile line by line

    Posted 10/15/17 05:11 AM

    Originally posted by: ZeBo


    Hello,

     

    my decision variable is a matrix and im writing the solution into a .txt file. Im going throug my matrix with 2 for-loops while every loop is a "writeln" command.

    Now opl is giving every matrix entry an own line in the .txt file. How can i say to not make a return?

     

    Given solution:

    0
    1
    0
    1
    1

    Wanted solution:

    0 1 0 1 1


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Oploutputfile line by line

    Posted 10/15/17 05:38 AM

    Hi

    you could replace writeln by write 

    regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Oploutputfile line by line

    Posted 10/15/17 05:45 AM

    Originally posted by: ZeBo


    Thank you Alex! That was effective :)


    #CPLEXOptimizers
    #DecisionOptimization