-- |

module Modelling.PetriNet.PetriPickConcurrency.Config where

import Modelling.PetriNet.Types (
  AlloyConfig (..),
  BasicConfig (..),
  ChangeConfig (..),
  GraphConfig (..),
  PickConcurrencyConfig (..),
  )

import Control.OutputCapable.Blocks     (ExtraText (..))
import Data.GraphViz.Commands           (GraphvizCommand(..))

{-|
points: 0.1
average generation time per instance: 14:00min
CPU usage: 100%
-}
task2023_21 :: PickConcurrencyConfig
task2023_21 :: PickConcurrencyConfig
task2023_21 = PickConcurrencyConfig {
  basicConfig :: BasicConfig
basicConfig = BasicConfig {
    places :: Int
places = Int
6,
    transitions :: Int
transitions = Int
6,
    atLeastActive :: Int
atLeastActive = Int
5,
    flowOverall :: (Int, Int)
flowOverall = (Int
12, Int
18),
    maxTokensPerPlace :: Int
maxTokensPerPlace = Int
2,
    maxFlowPerEdge :: Int
maxFlowPerEdge = Int
2,
    tokensOverall :: (Int, Int)
tokensOverall = (Int
5, Int
10),
    isConnected :: Maybe Bool
isConnected = Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
True
    },
  changeConfig :: ChangeConfig
changeConfig = ChangeConfig {
    tokenChangeOverall :: Int
tokenChangeOverall = Int
4,
    maxTokenChangePerPlace :: Int
maxTokenChangePerPlace = Int
2,
    flowChangeOverall :: Int
flowChangeOverall = Int
3,
    maxFlowChangePerEdge :: Int
maxFlowChangePerEdge = Int
1
    },
  graphConfig :: GraphConfig
graphConfig = GraphConfig {
    graphLayouts :: [GraphvizCommand]
graphLayouts = [GraphvizCommand
Fdp, GraphvizCommand
Sfdp],
    hidePlaceNames :: Bool
hidePlaceNames = Bool
True,
    hideTransitionNames :: Bool
hideTransitionNames = Bool
True,
    hideWeight1 :: Bool
hideWeight1 = Bool
True
    },
  printSolution :: Bool
printSolution = Bool
True,
  prohibitSourceTransitions :: Bool
prohibitSourceTransitions = Bool
False,
  useDifferentGraphLayouts :: Bool
useDifferentGraphLayouts = Bool
True,
  alloyConfig :: AlloyConfig
alloyConfig = AlloyConfig {
    maxInstances :: Maybe Integer
maxInstances = Integer -> Maybe Integer
forall a. a -> Maybe a
Just Integer
2000,
    timeout :: Maybe Int
timeout = Maybe Int
forall a. Maybe a
Nothing
    },
  extraText :: ExtraText
extraText = ExtraText
NoExtraText
  }

{-|
points: 0.1
average generation time per instance: 15:28min
CPU usage: 102%
-}
task2024_29 :: PickConcurrencyConfig
task2024_29 :: PickConcurrencyConfig
task2024_29 = PickConcurrencyConfig
task2023_21

{-|
points: 0.1
the amount of generated instances: 100
maximum concurrent amount of tasks: 100
average generation time per instance on the cluster (without considering concurrency): 2:20:54h
total run time on the cluster (not including queuing time): 04:28:23h
average CPU usage: 99%
average max memory usage: 1234.35 MB
-}
task2025_31 :: PickConcurrencyConfig
task2025_31 :: PickConcurrencyConfig
task2025_31 = PickConcurrencyConfig
task2024_29

{-|
points: 0.1
the amount of generated instances: 100
maximum concurrent amount of tasks: 100
average generation time per instance on the cluster (without considering concurrency): 2:19:38h
total run time on the cluster (not including queuing time): 02:26:58h
average CPU usage: 99%
average max memory usage: 1223.58 MB
-}
task2025_60 :: PickConcurrencyConfig
task2025_60 :: PickConcurrencyConfig
task2025_60 = PickConcurrencyConfig
task2025_31