FPL-Optimization-Tools icon indicating copy to clipboard operation
FPL-Optimization-Tools copied to clipboard

Cannot find _sol.txt

Open aashishpokharel opened this issue 10 months ago • 5 comments

I am trying to run the application and keep running into the following issue. The solver can't seem to create a *_sol.txt file. Any help would be appreciated:


Checking for updates...
Your repository is up-to-date.
749 total players (before)
263 total players (after)
Added player 339 to list, buy price 6.4 sell price 6.3
Added player 211 to list, buy price 4.8 sell price 4.7
Added player 99 to list, buy price 7.9 sell price 7.8
Added player 401 to list, buy price 9.5 sell price 9.0
Added player 255 to list, buy price 5.1 sell price 4.9
{'horizon': 5, 'decay_base': 0.84, 'ft_value': 1.5, 'ft_value_list': {'2': 2.1, '3': 1.8, '4': 1.5, '5': 1.1}, 'ft_use_penalty': 0.5, 'itb_value': 0.08, 'itb_loss_per_transfer': 0, 'no_future_transfer': False, 'no_transfer_last_gws': 2, 'no_transfer_by_position': [], 'force_ft_state_lb': [], 'force_ft_state_ub': [], 'randomized': False, 'xmin_lb': 10, 'ev_per_price_cutoff': 30, 'keep_top_ev_percent': 20, 'banned': [], 'banned_next_gw': [], 'locked': [], 'locked_next_gw': [], 'locked_am': [], 'price_changes': [], 'keep': [], 'delete_tmp': True, 'single_solve': True, 'secs': 600, 'gap': 0, 'use_cmd': False, 'num_transfers': None, 'hit_limit': None, 'weekly_hit_limit': 1, 'hit_cost': 4, 'use_wc': None, 'use_bb': None, 'use_fh': None, 'use_tc': None, 'use_am': None, 'chip_limits': {'bb': 0, 'wc': 0, 'fh': 0, 'tc': 0, 'am': 0}, 'no_chip_gws': [], 'allowed_chip_gws': {'bb': [], 'wc': [], 'fh': [], 'tc': [], 'am': []}, 'forced_chip_gws': {'bb': [], 'wc': [], 'fh': [], 'tc': [], 'am': []}, 'run_chip_combinations': {'bb': [], 'wc': [], 'fh': [], 'tc': [], 'am': []}, 'future_transfer_limit': None, 'no_transfer_gws': [], 'booked_transfers': [], 'only_booked_transfers': False, 'no_trs_except_wc': False, 'ft_custom_value': {}, 'preseason': False, 'use_login': False, 'solver': 'highs', 'solver_path': None, 'no_opposing_play': False, 'opposing_play_group': 'position', 'opposing_play_penalty': 0.5, 'pick_prices': {'G': '', 'D': '', 'M': '', 'F': ''}, 'no_gk_rotation_after': None, 'max_defenders_per_team': 3, 'double_defense_pick': False, 'transfer_itb_buffer': None, 'iteration': 1, 'iteration_criteria': 'this_gw_transfer_in', 'iteration_difference': 1, 'iteration_target': [], 'report_decay_base': [0.85, 1.0, 1.017], 'datasource': 'review', 'export_am_ev': True, 'data_weights': {'review': 40, 'review-odds': 30, 'mikkel': 30}, 'export_data': 'final.csv', 'team_data': 'json', 'team_id': None, 'export_image': True, 'solve_name': 'regular', 'override_next_gw': None, 'binary_files': {'fplreview_binary_1.csv': 0.6, 'fplreview_binary_2.csv': 0.3, 'fplreview_binary_3.csv': 0.1}}
This solver is free for personal, educational, or non-commercial use under the Apache License 2.0. Commercial entities must obtain a Commercial License before accessing, viewing, or using the code for any commercial purposes. Unauthorized access or use by commercial entities without a valid commercial license is strictly prohibited. To obtain a commercial license, please contact us at [email protected].
Version: 334 - 0232cd7
NOTE: Initialized model mp_h5_od_d0.84.
OC - No TR last GWs
Using FT values of {'2': 2.1, '3': 1.8, '4': 1.5, '5': 1.1}
C:\AppData\Roaming\Python\Python312\site-packages\sasoptpy\interface\format\mps_format.py:188: FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  df[f] = df[f].replace('', np.nan)
Exported problem with name: mp_h5_od_d0.84_G9sS5_0
COmmand ISSSUE highs --parallel on --options_file tmp/mp_h5_od_d0.84_G9sS5_0.opt --random_seed 0 --presolve on --model_file tmp/mp_h5_od_d0.84_G9sS5_0.mps --time_limit 600 --solution_file tmp/mp_h5_od_d0.84_G9sS5_0_sol.txt
Traceback (most recent call last):
  File "D:\FPL\FPL-Optimization-Tools\run\solve_regular.py", line 254, in <module>
    solve_regular()
  File "D:\FPL\FPL-Optimization-Tools\run\solve_regular.py", line 135, in solve_regular
    response = solve_multi_period_fpl(data, options)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\FPL\FPL-Optimization-Tools\run\..\src\multi_period_dev.py", line 1144, in solve_multi_period_fpl
    process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

aashishpokharel avatar Feb 06 '25 17:02 aashishpokharel

Hello 👋 Can you verify if you have HiGHS solver on your machine, accessible everywhere? (In a command prompt, just run "highs" and see if it gives you any errors)

sertalpbilal avatar Feb 09 '25 17:02 sertalpbilal

Is this a HIGHs related issue? I was trying to use CBC one.

On Sun, Feb 9, 2025, 11:33 PM Sertalp B. Cay @.***> wrote:

Hello 👋 Can you verify if you have HiGHS solver on your machine, accessible everywhere? (In a command prompt, just run "highs" and see if it gives you any errors)

— Reply to this email directly, view it on GitHub https://github.com/sertalpbilal/FPL-Optimization-Tools/issues/46#issuecomment-2646435660, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANGJQIAW5YPQC6WHZAANKZL2O6IHRAVCNFSM6AAAAABWUBBLUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWGQZTKNRWGA . You are receiving this because you authored the thread.Message ID: @.***>

aashishpokharel avatar Feb 09 '25 17:02 aashishpokharel

We have replaced the default solver to HiGHS, but you can specify CBC in settings file as "solver": "cbc",

sertalpbilal avatar Feb 09 '25 17:02 sertalpbilal

Oh ok , the documentation says CBC by default, so was trying to run using that .

On Sun, Feb 9, 2025, 11:38 PM Sertalp B. Cay @.***> wrote:

We have replaced the default solver to HiGHS, but you can specify CBC in settings file as "solver": "cbc",

— Reply to this email directly, view it on GitHub https://github.com/sertalpbilal/FPL-Optimization-Tools/issues/46#issuecomment-2646437466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANGJQIFF5M4YMIRMPHKLTO32O6I3BAVCNFSM6AAAAABWUBBLUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBWGQZTONBWGY . You are receiving this because you authored the thread.Message ID: @.***>

aashishpokharel avatar Feb 09 '25 17:02 aashishpokharel

Oh, apologies for that. Will fix the README file.

If you can install either, HiGHS is faster (and are being developed actively) but CBC should keep working if you change the parameter.

sertalpbilal avatar Feb 09 '25 17:02 sertalpbilal