Decision Optimization

Decision Optimization

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

 View Only
  • 1.  How to use WRTnode file in msvs2017

    Posted Fri April 01, 2022 06:45 AM
    Edited by System Admin Fri January 20, 2023 04:44 PM
    Dear support team,

    We are trying to solve an optimization problem with the Branch-Cut algorithm.
    In this case, we would like to compare our generated cuts with the cuts cplex already generated itself. (e.g. MIR cut that used in a specific node).
    Based on some help, we have gotten a sample file that seems very close to what we want in the IBM documentations host. As it was written in the C language we are trying to use msvs2017 to execute that. In the file header, it has been mentioned that:

    /* To run this example, command line arguments are required.
    i.e., wrtnode filename [startnode] [endnode] [prmfile]
    where
    filename is the name of the file, with .mps, .lp, or .sav extension
    startnode and endnode are optional node numbers indicating the range
    of nodes for which the program will write node files.
    prmfile is an optional permissions file to specify non default
    parameter settings without recompiling.
    Example:
    wrtnode mexample.mps 100 200
    */

    We assumed, that this file has to be executed as other examples by releasing form, but when we start the program, it appears nothing, and the CMD window is closed without any reaction. As our preferred language is Java and unfortunately these kinds of functions only written in the C language we have to use this programming.

    I was wondering if, is there any specific way to execute that? do we have to write an extra program to call this function in another callback?

    Regards
    Abbas

    ------------------------------
    Abbas Omidi
    ------------------------------
    #DecisionOptimization


  • 2.  RE: How to use WRTnode file in msvs2017

    Posted Tue April 05, 2022 04:01 AM
    Hi

    Don't forget to pass the required arguments while setting your "run configuration" arguments
    Then if it still crashed, try to debug step by step within your visual editor

    David

    ------------------------------
    David Gravot
    ------------------------------