Initializing help system before first use

XPRS

  • java.lang.Object
    • com.dashoptimization.XPRS
    • Constructor Detail

      • XPRS

        public XPRS(java.lang.String path)
        Create a new instance. This constructor only exists so that you can use initialization and cleanup within try-with-resources:
           try (XPRS xprs = new XPRS("...")) { // equivalent to XPRS.init("...")
             ...
           }                                   // equivalent to XPRS.free()
         
        The constructor calls init(String) with path and the close function will call free(). So above code is equivalent to
         XPRS.init(path);
         try {
             ...
         }
         finally {
             XPRS.free();
         }
         
        Parameters:
        path - The path for licensing. This is passed to init(String). Can be null to indicate the default license location.
        Since:
        8.14
      • XPRS

        public XPRS()
        Shortcut for XPRS(String) with a null path.
        Since:
        8.14

© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.