Package org.ojalgo
Class OjAlgoUtils
- java.lang.Object
-
- org.ojalgo.OjAlgoUtils
-
public abstract class OjAlgoUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static VirtualMachine
ENVIRONMENT
This is set for you, but you may want to set it to something different/better.
-
Constructor Summary
Constructors Modifier Constructor Description private
OjAlgoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getDate()
static java.lang.String
getTitle()
static java.lang.String
getVendor()
static java.lang.String
getVersion()
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".static void
limitEnvironmentBy(double fraction)
static void
limitThreadsTo(int maxThreads)
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".static void
main(java.lang.String[] args)
static void
pushUpConcurrencyThresholds(int minValue)
-
-
-
Field Detail
-
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.
-
-
Method Detail
-
getDate
public static java.lang.String getDate()
- See Also:
Package.getSpecificationVersion()
-
getTitle
public static java.lang.String getTitle()
- See Also:
Package.getImplementationTitle()
-
getVendor
public static java.lang.String getVendor()
- See Also:
Package.getImplementationVendor()
-
getVersion
public static java.lang.String getVersion()
- See Also:
Package.getImplementationVersion()
-
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(java.lang.String[] args)
-
pushUpConcurrencyThresholds
public static void pushUpConcurrencyThresholds(int minValue)
-
-