Skip to main content
Ctrl+K
Documentation and examples - Home

Introduction

  • Interacting with SHOP
    • ASCII example
    • ASCII data formats
    • SHOP JSON Standard
    • SHOP YAML Standard
    • pyshop
    • Basic example
  • Attribute datatypes
  • Licensed functionality in SHOP
  • Environment variables
  • Dependencies

Commands, objects and attributes

  • Commands
    • add model
    • create bp_curves
    • data
    • expand window
    • ignore data
    • individual endpenalty
    • individual penalty
    • log file
    • penalty cost
    • penalty flag
    • print ascii
    • print bid_matrix
    • print bp_bid_matrix
    • print bp_curves
    • print mc_curves
    • print model
    • print pqcurves
    • print yaml
    • quit
    • read model
    • read optbasis
    • read yaml
    • reset lp_model
    • reset ownership
    • return scenario_result_table
    • return shopsimres
    • return simres
    • save case
    • save optbasis
    • save optres_for_shopsim
    • save pq_curves
    • save series
    • save shopsimseries
    • save tunnelloss
    • save xmlseries
    • save xmlshopsimseries
    • set bid_aggregation_level
    • set build_original_pq_curves_by_discharge_limits
    • set bypass_loss
    • set code
    • set com_dec_period
    • set delay_valuation
    • set droop_cost_exponent
    • set droop_discretization_limit
    • set droop_ref_value
    • set duals_from_mip
    • set dyn_flex_mip
    • set dyn_seg
    • set epsilon
    • set extra_file
    • set fcr_d_band
    • set fcr_n_band
    • set fcr_n_equality_flag
    • set gen_turn_off_limit
    • set gravity
    • set headopt_feedback
    • set initial_reservoir
    • set inteps
    • set linear_startup
    • set lp_row
    • set lp_var
    • set max_num_threads
    • set merge
    • set method
    • set mip_nseg
    • set mip_progress_log
    • set mipgap
    • set mix_cut_vv
    • set newgate
    • set nodelog
    • set nseg
    • set optbasis
    • set overflow_cut_description
    • set ownership_scaling
    • set parallel_mode
    • set password
    • set plant_max_prod_reserve_strategy
    • set plant_min_prod_reserve_strategy
    • set plant_unbalance_recommit
    • set plant_uploading
    • set power_head_optimization
    • set presim
    • set prod_from_ref_prod
    • set pump_head_optimization
    • set pump_turn_off_limit
    • set ramp_scale_factor
    • set ramping
    • set recommit
    • set reserve_activation_factor
    • set reserve_activation_penalty_cost
    • set reserve_activation_time
    • set reserve_min_capacity
    • set reserve_penalty_cost
    • set reserve_ramping_cost
    • set reserve_schedule_penalty_cost
    • set reserve_slack_cost
    • set reserve_tactical_activation_cost_scaling
    • set rr_up_schedule_slack_flag
    • set rsv_hard_limit_penalty_cost
    • set safe_mode
    • set silent
    • set sim_schedule_correction
    • set simple_pq_recovery
    • set simtimestep
    • set solver
    • set startup_cost_printout
    • set stop_cost_from_start_cost
    • set time_delay_unit
    • set timelimit
    • set tuning
    • set universal_affinity
    • set universal_mip
    • set universal_overflow_mip
    • set universal_river_mip
    • set universal_strict_pq_uploading
    • set xml_system_name
    • set xmllog
    • start shopsim
    • start sim
  • Objects
    • ac_line
    • battery
    • bid_group
    • busbar
    • commit_group
    • contract
    • creek_intake
    • cut_group
    • dc_line
    • discharge_group
    • gate
    • gen_reserve_capability
    • generator
    • global_settings
    • inflow_series
    • interlock_constraint
    • junction
    • junction_gate
    • lp_model
    • market
    • needle_comb_reserve_capability
    • needle_combination
    • objective
    • plant
    • plant_reserve_capability
    • production_group
    • pump
    • pump_reserve_capability
    • reserve_group
    • reservoir
    • river
    • scenario
    • solar
    • thermal
    • tunnel
    • unit_combination
    • volume_constraint
    • wind
  • Attributes

Tutorials and examples

  • Best Profit
    • Marginal costs and optimal uploading
  • Generators and pumps
    • Maintenance planning
    • Minimum up- and downtime
    • Binary pumps
    • Reversible turbines
    • Pelton units and forbidden zones
  • Power systems
    • Power flow
    • Battery, solar and wind
  • Ramping constraints
    • Amplitude and non-sequential ramping
    • Complex ramping on reservoir level
    • Complex ramping on plant discharge
  • Reserves
    • Reserve capacity allocation
    • Discretization of droop
    • Reserves on batteries
    • Reserve capacity markets
    • Plant reserve strategies
  • Simulation
    • Water budgeting
  • Stochastic optimization
    • Bidding under uncertainty
  • Tunnel modelling
    • Basic tunnel modelling
    • Junctions and junction gates
    • Modelling stable creek intakes
    • Advanced tunnel example
  • Uncontrollable flow
    • Overflow modelling
    • Time delay and environmental constraints
  • Water value descriptions
    • Individual water values
    • Cut descriptions
    • Reservoir schedule
  • PQ curves
    • PQ curve limits

Publications

  • How to cite SHOP
  • List of publications
  • Bibliography
  • .md

print bid_matrix

Contents

  • Printing bidding results from SHARM
    • Printing and reducing the bid matrix
    • Printing an interpolated bid matrix

print bid_matrix#

Print out the bid matrix for each bid_group in the system when using the SHARM bidding functionality. If the option “/system” or “/plant” is used, the bid matrices on system or plant level will be printed out instead

Options

/system, /plant

License

SHOP_SCENARIO_FUNCTIONALITY

Release version

13.0.0.a

  • Printing bidding results from SHARM

Printing bidding results from SHARM#

To save the results from a SHARM run with bidding, the two commands below can be used. See the bidding documentation for further information.

Printing and reducing the bid matrix#

To print out the bid matrices made from a SHARM run, use the command:

Command: print bid_matrix (/option) (<value>)

Comment

system

Print out the bid matrix for the sum of all plants to the file “system_bid_matrix.txt”

plant

Print out the bid matrix for every plant to the files “<plant_name>_bid_matrix.txt”

If no option is given, the bid matrix for every bid_group defined in the system will be printed out. Note that one may print out the system or plant bid matrix regardless of the bid_aggregation_level used. The bid matrix may contain several hundred price columns, so a reduction algorithm is applied to reduce the bid matrix down to a smaller size. If either the option /system or /plant is used, the reduction will be carried out on the sum of all bid_groups present in the model. The prices found in this reduction will be used to create the system or plant matrices. If no option is given, each bid_group will be reduced separately. Both the reduced and the original bid matrices will be printed out, where the original bid matrix file name will have the prefix “unreduced_”. The optional value is the number of price columns that should be present in the reduced matrix. If no value is given, the default value of 64 is used.

Printing an interpolated bid matrix#

In the “print bid_matrix” command, the price columns present in the reduced bid matrix are chosen based on a reduction algorithm. It is also possible to print out a bid matrix based on user specified prices with the command:

interpolate bid_matrix [<values>]

The list of values are the prices that will be used as price columns in the bid matrix. The bid values for these prices are calculated by interpolating the bids from the original bid matrix.

previous

print ascii

next

print bp_bid_matrix

Contents
  • Printing bidding results from SHARM
    • Printing and reducing the bid matrix
    • Printing an interpolated bid matrix

By SINTEF Energy Research | SHOP v16.8.3 (f7178b0e) | 2025-06-04 13:43:07 (UTC+0) | Documentation version aa02e991

© Copyright 2025.