Package org.ojalgo

Class OjAlgoUtils

java.lang.Object
org.ojalgo.OjAlgoUtils

public abstract class OjAlgoUtils extends Object
  • Field Details

    • ENVIRONMENT

      public static VirtualMachine ENVIRONMENT
      This is set for you, but you may want to set it to something different/better. Create a Hardware instance and then call Hardware.virtualise(). The idea is that the Hardware instance should match the actual hardware, but the VirtualMachine can optionally be limited to only let ojAlgo "see" a subset of the cores/threads. Changing this must be the very first thing you do with ojAlgo.
  • Constructor Details

    • OjAlgoUtils

      private OjAlgoUtils()
  • Method Details

    • getDate

      public static String getDate()
      See Also:
    • getTitle

      public static String getTitle()
      See Also:
    • getVendor

      public static String getVendor()
      See Also:
    • getVersion

      public static String getVersion()
      See Also:
    • limitCoresTo

      public static void limitCoresTo(int maxCores)
      With several CPU cores present you can limit the number of threads used by ojAlgo by defining how many of the cores ojAlgo should "see".
      Parameters:
      maxCores - The number of CPU cores available to ojAlgo
    • limitEnvironmentBy

      public static void limitEnvironmentBy(double fraction)
    • limitThreadsTo

      public static void limitThreadsTo(int maxThreads)
      Parameters:
      maxThreads - The number of CPU threads available to ojAlgo
    • limitUnitsTo

      public static void limitUnitsTo(int maxUnits)
      With several CPU:s present you can limit the number of threads used by ojAlgo by defining how many of the CPU:s ojAlgo should "see".
      Parameters:
      maxUnits - The number of CPU:s available to ojAlgo
    • main

      public static void main(String[] args)
    • pushUpConcurrencyThresholds

      public static void pushUpConcurrencyThresholds(int minValue)